How do I set the wait time during program execution?

188 visualizaciones (últimos 30 días)
YIMING
YIMING el 21 de Mayo de 2011
Comentada: Lukas el 6 de Mayo de 2025
Suppose I've got two lines of code, and want to set a 1-second time interval after the execution of sentence 1, but before sentence 2. How do I achieve this?
sentence 1;
wait time (1 second);
sentence 2;

Respuestas (1)

Matt Fig
Matt Fig el 21 de Mayo de 2011
pause(1)
Also, see the help for the PAUSE function.

Categorías

Más información sobre Numeric Types 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