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++)?

Answers (1)

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

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 26 Jun 2020

Answered:

on 26 Jun 2020

Community Treasure Hunt

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

Start Hunting!