Animated graphs plotting problem!?!

Excuse me, I have a problem with my graphs. How can I plot my two graph at same time? But they are like animations. I use "comet" and "getframe" commands. If u put the graph in for loop which works with the comet command, it is drawn in each loop If u put the it outside the loop, it is drawn after the other graph... How can I fix it? Please help me!!!

 채택된 답변

Oleg Komarov
Oleg Komarov 2011년 7월 24일

0 개 추천

You can use hold on but in general if you're updating the graph, it's not a good idea to replot every time. You should call comet, then hold on, then in the loop set the Xdata and Ydata.
To be more specific you should post the code.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Animation에 대해 자세히 알아보기

질문:

2011년 7월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by