How to pause the clock while the simulation continues to run?
Mostrar comentarios más antiguos
I have a model in which I have to compute the distance travelled for a constant speed over the simulation time. However the vehicle makes a number of stops in between during which I do not want the distance to calculate.
Is there a way to pause the clock(input) during these breaks so that I can get the exact distance travelled? The breaks made is given by a binary signal in which (1) is vehicle in running condition and (0) is vehicle in static condition.
My apologies if something similar has been discussed before, however I could not find anything online.
Thanks in advance!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!