Telling MATLAB to wait
110 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Zach
am 12 Mai 2011
Kommentiert: Ghenam Dahmane
am 4 Nov. 2022
I'm doing a project and when I run my code, instead of MATLAB plotting the results after every time-step, it's only plotting the end result. I tried using the wait and timeout function but was unsuccessful. If anyone could help me put a 0.5 sec delay so MATLAB has the chance to plot that would be great!
0 Kommentare
Akzeptierte Antwort
Matt Fig
am 12 Mai 2011
Do you call PLOT after every time-step? After every time-step, call PLOT then cal DRAWNOW. You can also call PAUSE with a time-to-pause argument, but I doubt this is what you really want to do with your code.
Weitere Antworten (1)
Sean de Wolski
am 12 Mai 2011
pause(0.5)
14 Kommentare
Matt Tearle
am 13 Mai 2011
Thanks, Jiro. I think you've just made a business case for me needing a new computer... :)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!