how to send Data to workspace
이전 댓글 표시
How to send data to workspace continuosly whenever my simulink model has been paused by below code,,I am using a simple constant block and to workspace block
tic
open_system('');
for i=1:1:10
set_param('SampleTest','StopTime', sprintf('%d',i));
set_param('SampleTest', 'Simulationcommand', 'start')
pause(1)
set_param('SampleTest', 'Simulationcommand', 'update')
set_param('SampleTest', 'Simulationcommand', 'continue')
end
toc
댓글 수: 2
Arun Badigannavar
2013년 1월 7일
Azzi Abdelmalek
2013년 1월 8일
Do you mean after 10, itterations?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!