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

Risposte (1)

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

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Tag

Risposto:

il 26 Giu 2020

Community Treasure Hunt

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

Start Hunting!

Translated by