How to add drop lines into plot ?

17 ビュー (過去 30 日間)
Niyazi ARSLAN
Niyazi ARSLAN 2020 年 12 月 23 日
コメント済み: Niyazi ARSLAN 2020 年 12 月 24 日
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

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 12 月 24 日
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 件のコメント
Niyazi ARSLAN
Niyazi ARSLAN 2020 年 12 月 24 日
Thank you, It worked for me! That's what I was looking for!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by