


HERRORBAR Horizontal Error bar plot.
HERRORBAR(X,Y,L,R) plots the graph of vector X vs. vector Y with
horizontal error bars specified by the vectors L and R. L and R contain the
left and right error ranges for each point in X. Each error bar
is L(i) + R(i) long and is drawn a distance of L(i) to the right and R(i)
to the right the points in (X,Y). The vectors X,Y,L and R must all be
the same length. If X,Y,L and R are matrices then each column
produces a separate line.
HERRORBAR(X,Y,E) or HERRORBAR(Y,E) plots X with error bars [X-E X+E].
HERRORBAR(...,'LineSpec') uses the color and linestyle specified by
the string 'LineSpec'. See PLOT for possibilities.
H = HERRORBAR(...) returns a vector of line handles.
Example:
x = 1:10;
y = sin(x);
e = std(y)*ones(size(x));
herrorbar(x,y,e)
draws symmetric horizontal error bars of unit standard deviation.
This code is based on ERRORBAR provided in MATLAB.
See also ERRORBAR