Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
MoHa
MoHa el 10 de Mzo. de 2020
Comentada: MoHa el 11 de Mzo. de 2020
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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by