Can we add a variable inside the pause command?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ali
le 14 Jan 2015
Réponse apportée : David Sanchez
le 14 Jan 2015
Can we add a variable inside the pause command? for example pause(wait(i))?
0 commentaires
Réponse acceptée
David Sanchez
le 14 Jan 2015
If you read the documentation
doc pause
you will see that you can add a variable inside the pause command.
One example:
w = 1;
for k=1:2
pause(w) % pause one second before executing next sentence
disp(i)
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Object Programming 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!