Pausing code for some time
3 views (last 30 days)
Show older comments
How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?
Answers (1)
Manish Kumar
on 26 Jun 2020
You can use pause function.
pause(n);
It will pause your code execution for n seconds.
pause(n);
0 Comments
See Also
Categories
Find more on Get Started with MATLAB 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!