Can we add a variable inside the pause command?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Can we add a variable inside the pause command? for example pause(wait(i))?
0 Commenti
Risposta accettata
David Sanchez
il 14 Gen 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Type Conversion in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!