When I plot a vertical line the line is a series of dots
3 次查看(过去 30 天)
显示 更早的评论
I want to plot a vertical line on a graph. I have tried both with the classic plot function and with the line function.
line(xValue,y)
where xValue is a single number on the x axis and y is a vector defined as y = 1:0.5:400. What I get is in the image.

I have also tried defining the style of the line which for a solid line should be '-' even though it should be solid by default, but nothing changed.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!