Effacer les filtres
Effacer les filtres

Telling MATLAB to wait

109 vues (au cours des 30 derniers jours)
Zach
Zach le 12 Mai 2011
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!

Réponse acceptée

Matt Fig
Matt Fig le 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.
  1 commentaire
Zach
Zach le 12 Mai 2011
thank you!

Connectez-vous pour commenter.

Plus de réponses (1)

Sean de Wolski
Sean de Wolski le 12 Mai 2011
  14 commentaires
Matt Tearle
Matt Tearle le 13 Mai 2011
Thanks, Jiro. I think you've just made a business case for me needing a new computer... :)
Ghenam Dahmane
Ghenam Dahmane le 4 Nov 2022
thanks so match

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by