Why does my graph plot show a horizontal line?

9 visualizaciones (últimos 30 días)
XH K
XH K el 15 de Nov. de 2019
Comentada: XH K el 15 de Nov. de 2019
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 comentarios
Alex Mcaulley
Alex Mcaulley el 15 de Nov. de 2019
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 el 15 de Nov. de 2019
oh yes.. thanks. I see it now. I didnt realised the line is connected to the last value.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by