Pausing code for some time

8 ビュー (過去 30 日間)
Sushanth Manchikatla
Sushanth Manchikatla 2020 年 6 月 26 日
回答済み: Manish Kumar 2020 年 6 月 26 日
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 日
You can use pause function.
pause(n);
It will pause your code execution for n seconds.
pause(n);

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by