![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174837/image.png)
Setting stop time (auto)
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi guys, Is there a way to automatically set a stop time in simulink?, for example, I throw a ball at 30m/s horizontally and 10m/s vertically. Let take it as an example that the ball fall to the ground at 4.7 seconds. Furthermore, I would like to plot two graphs, one regards to displacement in y, the other in x. So, when the graph of displacement in Y reach zero, I want the graph for displacement in x to stop moving by itself without setting the "stop time".
댓글 수: 0
답변 (1개)
Mischa Kim
2014년 4월 24일
편집: Mischa Kim
2014년 4월 24일
Samious, see this answer for reference. You could set it up such that when the Y goes negative the sim is stopped. As a quick example
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174837/image.png)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!