How to pause the clock while the simulation continues to run?
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Clocks and Timers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!