Pausing code for some time

How to pause the code execution for a given amount of time in matlab ( similar to Sleep() or delay() in c++)?

1 件のコメント

KSSV
KSSV 2020 年 6 月 26 日
Read about pause.

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

回答 (1 件)

Manish Kumar
Manish Kumar 2020 年 6 月 26 日

0 投票

You can use pause function.
pause(n);
It will pause your code execution for n seconds.
pause(n);

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

タグ

質問済み:

2020 年 6 月 26 日

回答済み:

2020 年 6 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by