필터 지우기
필터 지우기

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 CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by