Pausing code for some time

3 visualizaciones (últimos 30 días)
Sushanth Manchikatla
Sushanth Manchikatla el 26 de Jun. de 2020
Respondida: Manish Kumar el 26 de Jun. de 2020
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
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 Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by