How introduce a delay of one second in MATLAB?

152 ビュー (過去 30 日間)
Harsha KVK
Harsha KVK 2022 年 7 月 7 日
コメント済み: Karim 2022 年 7 月 7 日
I am trying create an application where user can record an audio and listen back to it. For that I also want to display a counter in the UI which shows the time in seconds.I tried using loops but I wàs not able to generate a dalay. Can anyone please help me with this?

採用された回答

Karim
Karim 2022 年 7 月 7 日
編集済み: Karim 2022 年 7 月 7 日
you can use the "pause" function, this will pause matlab for the given amount of time
pause(1)
  2 件のコメント
Harsha KVK
Harsha KVK 2022 年 7 月 7 日
It worked! Thank you
Karim
Karim 2022 年 7 月 7 日
you are welcome, if it works for you may always accept the answer :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by