Helping to Create Line Animations

1 Ansicht (letzte 30 Tage)
Tien Tran
Tien Tran am 3 Jan. 2016
Kommentiert: Walter Roberson am 8 Jan. 2016
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?
.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Jan. 2016
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
  1 Kommentar
Walter Roberson
Walter Roberson am 8 Jan. 2016
You should start a new question for this.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by