how to plot verticle lines?

1 次查看(过去 30 天)
Hello,
How do I plot vercicle lines that go up to y-value 10?
thanks in advance

采纳的回答

John D'Errico
John D'Errico 2020-11-30
编辑:John D'Errico 2020-11-30
Plot two points, connected by a line. Both points will have the same value for x. You can choose the start and end point in y to plot. Don't use a marker. WTP?
Or, you could use the function xline.
  4 个评论
Adam Danz
Adam Danz 2020-11-30
Or use stem
stem(10,'Marker','none')
ylim([0,12])

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by