How to pause the clock while the simulation continues to run?
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Clocks and Timers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!