errorbar for x and y
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
esil kara
am 16 Dez. 2020
Kommentiert: esil kara
am 17 Dez. 2020
hello,
I could not add errorbars in both direction. I tried copying the code below to the program as is but it also not work on my Matlab
x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
yneg = [1 3 5 3 5 3 6 4 3 3];
ypos = [2 5 3 5 2 5 2 2 5 5];
xneg = [1 3 5 3 5 3 6 4 3 3];
xpos = [2 5 3 5 2 5 2 2 5 5];
errorbar(x,y,yneg,ypos,xneg,xpos,'o')
the program gives the 'too many input arguments' error note
0 Kommentare
Akzeptierte Antwort
the cyclist
am 16 Dez. 2020
This code works for me. What version of MATLAB are you running?
If you have an older version, and cannot update, then you could instead use a submission from the File Exchange, such as this one.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Errorbars 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!