Telling MATLAB to wait
111 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Matt Fig
2011-5-12
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 个)
Sean de Wolski
2011-5-12
pause(0.5)
14 个评论
Matt Tearle
2011-5-13
Thanks, Jiro. I think you've just made a business case for me needing a new computer... :)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!