Pausing code for some time

3 次查看(过去 30 天)
Sushanth Manchikatla
How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?

回答(1 个)

Manish Kumar
Manish Kumar 2020-6-26
You can use pause function.
pause(n);
It will pause your code execution for n seconds.
pause(n);

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by