How introduce a delay of one second in MATLAB?

111 views (last 30 days)
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?

Accepted Answer

Karim
Karim on 7 Jul 2022
Edited: Karim on 7 Jul 2022
you can use the "pause" function, this will pause matlab for the given amount of time
pause(1)
  2 Comments
Karim
Karim on 7 Jul 2022
you are welcome, if it works for you may always accept the answer :)

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!