hello everyone. i need some help. how to put errorbar to a scattered plot,to each point?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
waqas muhammad
am 29 Jan. 2018
Kommentiert: waqas muhammad
am 29 Jan. 2018
x=[10,20,30,40,50], y=[15,20,25,35,45],
c=[0.2,0.4,0.5,0.6,0.8]
scatter(x,y)
c is the error, i have to apply it to y,
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Jan. 2018
Change the scatter call to become
errorbar(x, y, c, 'o');
This linespec of the 'o' marker implies that linestyle 'none' is to be used: when you do any line plotting, specifying a marker without specifying a line style implies that no line should be used.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line 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!