How introduce a delay of one second in MATLAB?

153 vues (au cours des 30 derniers jours)
Harsha KVK
Harsha KVK le 7 Juil 2022
Commenté : Karim le 7 Juil 2022
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?

Réponse acceptée

Karim
Karim le 7 Juil 2022
Modifié(e) : Karim le 7 Juil 2022
you can use the "pause" function, this will pause matlab for the given amount of time
pause(1)
  2 commentaires
Harsha KVK
Harsha KVK le 7 Juil 2022
It worked! Thank you
Karim
Karim le 7 Juil 2022
you are welcome, if it works for you may always accept the answer :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by