How do I set the wait time during program execution?

755 次查看(过去 30 天)
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;

回答(1 个)

Matt Fig
Matt Fig 2011-5-21
pause(1)
Also, see the help for the PAUSE function.

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by