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!