Simulation time in Simulink
이전 댓글 표시
I need to run a simulation from x sec to y sec in Simulink enviroment. I go to Solver --> set Start time=x Stop Time=y and run simulation. But this doesn´t work because simulation keep starting @ 0 sec. Does anybody knows how to do it?
채택된 답변
추가 답변 (2개)
Ankita Bansal
2018년 6월 25일
편집: Ankita Bansal
2018년 6월 25일
0 개 추천
Hi, can you see time offset(=4) at bottom right of your figure window?
The time offset is actually the start time you have given. The simulation runs from T=4 sec to T=12 sec only. It's just that the graph is shifted by 4 secs (x secs ).
You can also export the data to workspace and check for the min and max values of tout.
댓글 수: 2
Pablo Panitta
2018년 6월 25일
편집: Pablo Panitta
2018년 6월 25일
Ankita Bansal
2018년 6월 25일
"simulation actually last 8 sec"
Hi Pablo, simulation is running for 4 to 12 secs (for 8 secs duration). And the graph you are getting is also for 4 to 12 secs, it's just shifted by 4 secs. (4->0 and 12 ->8)
So (x,y) point in the graph actually corresponds to (x+4,y).
카테고리
도움말 센터 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

