Why does my graph plot show a horizontal line?

조회 수: 9 (최근 30일)
XH K
XH K 2019년 11월 15일
댓글: XH K 2019년 11월 15일
My Matlab ver is 2017b
I want to get rid of that horizontal line or at least know what it meant.
This is my code.
figure
plot(num(:,8),num(:,10))
title('xyz');
xlabel('x');
ylabel('y');
grid on;
  댓글 수: 2
Alex Mcaulley
Alex Mcaulley 2019년 11월 15일
I guess that your last 'x' value is 0 (and the previous one is ~21), then you obtain the horizontal line
XH K
XH K 2019년 11월 15일
oh yes.. thanks. I see it now. I didnt realised the line is connected to the last value.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by