MATLAB: How to plot verticle lines

lines

Hello,
How do I plot vercicle lines that go up to y-value 10?
thanks in advance

Best Answer

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.