Pausing code for some time
3 次查看(过去 30 天)
显示 更早的评论
How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?
回答(1 个)
Manish Kumar
2020-6-26
You can use pause function.
pause(n);
It will pause your code execution for n seconds.
pause(n);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!