Telling MATLAB to wait

147 ビュー (過去 30 日間)
Zach
Zach 2011 年 5 月 12 日
コメント済み: Ghenam Dahmane 2022 年 11 月 4 日
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!

採用された回答

Matt Fig
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 件のコメント
Zach
Zach 2011 年 5 月 12 日
thank you!

サインインしてコメントする。

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2011 年 5 月 12 日
pause(0.5)
  14 件のコメント
Matt Tearle
Matt Tearle 2011 年 5 月 13 日
Thanks, Jiro. I think you've just made a business case for me needing a new computer... :)
Ghenam Dahmane
Ghenam Dahmane 2022 年 11 月 4 日
thanks so match

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by