Make a dynamic line plot
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a vector Y and X. I want to make a dynamic 2D line plot that is updated as a new point is added to the X and Y.
X=[1 2 3];
Y=[5 6 7];
for i=0:20
X=[X, i];
Y=[Y,i*2];
?? how to make dynamic Y vs X line plot?
end
0 Kommentare
Antworten (2)
Azzi Abdelmalek
am 25 Jul. 2014
close
X=[1 2 3];
Y=[5 6 7];
plot(X,Y)
hold on
for i=4:20
X=[X, i];
Y=[Y,i*2];
plot(i,i*2,'*')
pause(1)
end
0 Kommentare
Parisa Sadeghi
am 26 Jul. 2017
Can the dynamic plot be embedded in a powerpoint presentation in the form of a movie?
Thanks
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!