How to animate a Digraph?
조회 수: 5 (최근 30일)
이전 댓글 표시
I have multiple digraphs created representing a nodal system over an entire year at an hourly timestep. Is it possible to animate a digraph in Matlab? im2frame requires uint8 or double...
댓글 수: 0
답변 (1개)
Yu-Tung Lin
2017년 7월 12일
I'm assuming you have a set of digraphs and want to animate on the same figure over time.
You can do it by adding the below codes between different digraph functions.
drawnow
n = 1 % n is the time in seconds you want to pause between different digraph
pause(n)
Now, the figure will update over time.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!