Setting stop time (auto)

3 Ansichten (letzte 30 Tage)
Samious
Samious am 24 Apr. 2014
Bearbeitet: Mischa Kim am 24 Apr. 2014
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".

Antworten (1)

Mischa Kim
Mischa Kim am 24 Apr. 2014
Bearbeitet: Mischa Kim am 24 Apr. 2014
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

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by