Why does my graph plot show a horizontal line?
9 次查看(过去 30 天)
显示 更早的评论
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
2019-11-15
I guess that your last 'x' value is 0 (and the previous one is ~21), then you obtain the horizontal line
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!