How to add drop lines into plot ?

19 vues (au cours des 30 derniers jours)
Niyazi ARSLAN
Niyazi ARSLAN le 23 Déc 2020
Commenté : Niyazi ARSLAN le 24 Déc 2020
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

Réponse acceptée

Cris LaPierre
Cris LaPierre le 24 Déc 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 commentaire
Niyazi ARSLAN
Niyazi ARSLAN le 24 Déc 2020
Thank you, It worked for me! That's what I was looking for!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by