Stop Simulation
조회 수: 17 (최근 30일)
이전 댓글 표시
Hi,
How do you stop a simulation when your variable reached a certian value i.e. when the velocity of an object reached zero how do you stop the simultion going to negative values?
I have looked at the stop block but not sure is it is much use to me as i am using an s-block to model a systems dynamics.
댓글 수: 0
채택된 답변
Arnaud Miege
2011년 3월 8일
Feed the velocity signal into a Compare to Zero block. The output of the block will change from 0 to 1 when the velocity becomes less or equal to zero. You can then connect the output of that block to the Stop Simulation block.
HTH,
Arnaud
댓글 수: 0
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!