Adding Vertical Lines to all Points on Plot
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ziv Melamed
am 6 Dez. 2018
Kommentiert: Star Strider
am 6 Dez. 2018
I want to keep my question as simple and to the point as possible. I have a scatter plot that marks points (ex: T=[5 10 100 1000 10000]; I want to add a vertical line for each point marked on the plot but I do not want to add each line manually. Is there a line function I can use to have it put a vertical line from each of my "T" points on the scatter plot?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 6 Dez. 2018
See if any of these do what you want:
T=[5 10 100 1000 10000];
figure
stem(T, 'filled')
grid
figure
stem(T, ones(size(T)))
grid
figure
stem(T, 'Marker','none')
grid
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


