How to add drop lines into plot ?

Is there any way to add drop lines into plot? I can do that in MS office softwares, but I could not find in Matlab,
Thanks

 Respuesta aceptada

Cris LaPierre
Cris LaPierre el 24 de Dic. de 2020
I don't know about drop lines, but one way to achieve this might be adding a stem plot on top of your plot.
x = 1:5;
y = [6 3 7 5 9];
plot(x,y)
hold on
stem(x,y)
hold off

1 comentario

Niyazi ARSLAN
Niyazi ARSLAN el 24 de Dic. de 2020
Thank you, It worked for me! That's what I was looking for!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Dic. de 2020

Comentada:

el 24 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by