フィルターのクリア

how can i plot my three parameters as line not scatter?

2 ビュー (過去 30 日間)
MoHa
MoHa 2020 年 3 月 10 日
コメント済み: MoHa 2020 年 3 月 11 日
i want to have a line plot but i get this one.
can anybody help me please.
Thank you.
eat=str2double(get(handles.edit1,'String'));
period=Repeat*1;
grid on
xlabel('Time [Minutes]','color','b');
ylabel( '3d-Displacement [Meter]','color','b')
title('Station stability','color','r');
set(gca,'xcolor','b','ycolor','b')
count=0;
while true
tic
t = rand(1);
count=count+1;
plot(count,t)
m=AtmosphericCorr;
m1=m(1);
m2=m(2);
m4=m(4);
hold on;
plot(count,m1,'r--+')
% plot(count,m2,'c--+')
plot(count,m4,'b--o')
plot(count,t,'y--*')
view(handles.axes1)
drawnow
T=toc;
pause(period-T)
end

採用された回答

Image Analyst
Image Analyst 2020 年 3 月 10 日
You need to plot arrays, not single points. So use indexes on m1, m2, and m4 and plot will then use the whole array rather than a single point and then you will get the lines between the points.
  6 件のコメント
MoHa
MoHa 2020 年 3 月 10 日
sorry it was a not the corrected one.
MoHa
MoHa 2020 年 3 月 11 日
Thank you so much Image Analyst for your Help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by