Filter löschen
Filter löschen

An error when plot horizontal error bar

3 Ansichten (letzte 30 Tage)
Ziwei Guo
Ziwei Guo am 18 Okt. 2016
Kommentiert: Richard Hull am 23 Okt. 2018
I want to plot the horizontal error bar. I tried the example given in Documentation:
x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
err = [1 3 5 3 5 3 6 4 3 3];
errorbar(x,y,err,'horizontal')
But my matlab gives me an error message: Error using errorbar
Error in color/linetype argument.
  1 Kommentar
Richard Hull
Richard Hull am 23 Okt. 2018
I was running into this same issue. It turned out my error vector was just the wrong size. The x, y, and error vectors all have to be the same size

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Soma Ardhanareeswaran
Soma Ardhanareeswaran am 21 Okt. 2016
The horizontal errorbar is a feature introduced in MATLAB R2016b and is not supported in older versions of MATLAB.

Kategorien

Mehr zu Errorbars finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by