Telling MATLAB to wait

477 views (last 30 days)
Zach on 12 May 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!

Accepted Answer

Matt Fig
Matt Fig on 12 May 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 Comment
Zach on 12 May 2011
thank you!

Sign in to comment.

More Answers (1)

Sean de Wolski
Sean de Wolski on 12 May 2011
Matt Tearle
Matt Tearle on 13 May 2011
Thanks, Jiro. I think you've just made a business case for me needing a new computer... :)

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!