Pausing code for some time
Show older comments
How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?
1 Comment
KSSV
on 26 Jun 2020
Read about pause.
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);
Categories
Find more on MATLAB Coder 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!