An error when plot horizontal error bar

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

Richard Hull
Richard Hull 2018년 10월 23일
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

댓글을 달려면 로그인하십시오.

답변 (1개)

Soma Ardhanareeswaran
Soma Ardhanareeswaran 2016년 10월 21일

0 개 추천

The horizontal errorbar is a feature introduced in MATLAB R2016b and is not supported in older versions of MATLAB.

카테고리

도움말 센터File Exchange에서 Errorbars에 대해 자세히 알아보기

태그

질문:

2016년 10월 18일

댓글:

2018년 10월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by