Errorbar plot has no connecting lines
Ältere Kommentare anzeigen
I just used the example from doc,
x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
err = 8*ones(size(y));
errorbar(x,y,err)
However, the figure has no connecting lines, unlike the documentation:

1 Kommentar
Star Strider
am 19 Sep. 2016
What version of the documentation did you use? The current online documentation is for R2016b, and that code works correctly for me (connects the centres of the bars with a line, and plotting the error bars) in R2016b.
Type:
doc errorbar
in your Command Window to get the documentation for your version. There could be version differences.
Akzeptierte Antwort
Weitere Antworten (1)
mbonus
am 19 Sep. 2016
errorbar(x,y,err,'-b')
4 Kommentare
fireattack
am 19 Sep. 2016
mbonus
am 19 Sep. 2016
does this do anything?
errorbar(x,y,err,'*b')
it won't add lines, it's just to check if you're able to modify the line properties besides just the color. If that works then try
errorbar(x,y,err,'--b')
Or after you plot it you could try
set(gca,'linestyle','--')
fireattack
am 23 Sep. 2016
Bearbeitet: fireattack
am 23 Sep. 2016
Kategorien
Mehr zu Errorbars finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
