how to plot verticle lines?

1 visualización (últimos 30 días)
Jens Petit-jean
Jens Petit-jean el 30 de Nov. de 2020
Comentada: Jens Petit-jean el 30 de Nov. de 2020
Hello,
How do I plot vercicle lines that go up to y-value 10?
thanks in advance

Respuesta aceptada

John D'Errico
John D'Errico el 30 de Nov. de 2020
Editada: John D'Errico el 30 de Nov. de 2020
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 comentarios
Adam Danz
Adam Danz el 30 de Nov. de 2020
Or use stem
stem(10,'Marker','none')
ylim([0,12])
Jens Petit-jean
Jens Petit-jean el 30 de Nov. de 2020
thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by