Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Image Analyst
Image Analyst il 10 Mar 2020
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 Commenti
MoHa
MoHa il 10 Mar 2020
sorry it was a not the corrected one.
MoHa
MoHa il 11 Mar 2020
Thank you so much Image Analyst for your Help!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Prodotti


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by