How do I set the wait time during program execution?

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일

14 개 추천

pause(1)
Also, see the help for the PAUSE function.

카테고리

도움말 센터File Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

질문:

2011년 5월 21일

댓글:

2025년 5월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by