Helping to Create Line Animations

1 次查看(过去 30 天)
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by