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

Respuestas (1)

Manish Kumar
Manish Kumar el 26 de Jun. de 2020

0 votos

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

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 26 de Jun. de 2020

Respondida:

el 26 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by