How to add drop lines into plot ?

18 次查看(过去 30 天)
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by