I want to create a line animation, but it seems not act in my Matlab software as attached image. Can you help me explaining this problem? How can I get this function?
.

 채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 3일

0 개 추천

animatedline was introduced in R2014b, which was after your release.
curve = line(nan,nan);
for i = 1 : length(x)
set(curve, 'xdata', x(1:i), 'ydata', y(1:i));
drawnow();
end

추가 답변 (0개)

카테고리

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

태그

질문:

2016년 1월 3일

댓글:

2016년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by