Pausing code for some time

How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?

回答(1 个)

You can use pause function.
pause(n);
It will pause your code execution for n seconds.
pause(n);

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by