How do I set the wait time during program execution?

145 ビュー (過去 30 日間)
YIMING
YIMING 2011 年 5 月 21 日
コメント済み: Lukas 2025 年 5 月 6 日
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 件のコメント
Lukas
Lukas 2025 年 5 月 6 日
Maybee
after(1,'sec')

サインインしてコメントする。

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by