How to view plotting in real time

3 ビュー (過去 30 日間)
Mekala balaji
Mekala balaji 2019 年 5 月 8 日
コメント済み: Mekala balaji 2019 年 5 月 9 日
x=[1,2,3,4,5,6,7,8,9];
y=[1,2,3,4,5,6,7,8,9];
hold on
% scatter(x,y,'X')
% line(x,y)
% plot(x,y,'-o')
plot(x,y,'-o','MarkerSize',10,...
'MarkerEdgeColor','red',...
'MarkerFaceColor',[1 .6 .6])
I want to see the real time ploting(meaning pop-up figure window and see while ploting)

採用された回答

Erivelton Gualter
Erivelton Gualter 2019 年 5 月 8 日
Hi Mekala,
Alternatevely, you can run the follow code:
x = [1,2,3,4,5,6,7,8,9];
y = [1,2,3,4,5,6,7,8,9];
figure;
hold on;
axis([min(x) max(x) min(y) max(y)]);
X = [];
Y = [];
for i=1:length(x)
X = [X x(i)];
Y = [Y y(i)];
plot(X,Y,'-o','MarkerSize',10,...
'MarkerEdgeColor','red',...
'MarkerFaceColor',[1 .6 .6]);
pause(.1);
end
  1 件のコメント
Mekala balaji
Mekala balaji 2019 年 5 月 9 日
Thanks,

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by