pause function doesn't work R20a
Afficher commentaires plus anciens
y=1;
while y<5
x=8
pause()
y=y+1;
end
this is just a simplified example to show that pause function is not working, I am not getting the code to be paused, any idea or relative function does the same job?
Réponses (2)
the cyclist
le 9 Juin 2023
Is it possible that another pause function was defined? When do you get from typing
which pause -all
in the command window?
1 commentaire
Walter Roberson
le 9 Juin 2023
Is that definitely the code? pause() without any parameter waits for a key to be pressed on the keyboard
Exception: if
pause off
has been executed, then the wait for keyboard is skipped.
2 commentaires
Mohanad
le 9 Juin 2023
Walter Roberson
le 10 Juin 2023
I just tried on my R2020a on my Mac, and pause() worked fine
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!