Make a dynamic line plot
17 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
Azzi Abdelmalek
2014 年 7 月 25 日
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 件のコメント
Parisa Sadeghi
2017 年 7 月 26 日
Can the dynamic plot be embedded in a powerpoint presentation in the form of a movie?
Thanks
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!