[Master Index]
[Index for /tools/hpmatlab/toolbox/matlab/plotxy]
errorbar
(/tools/hpmatlab/toolbox/matlab/plotxy/errorbar.m)
Function Synopsis
errorbar(x, y, l,u,symbol)
Help text
ERRORBAR Plot graph with error bars.
ERRORBAR(X,Y,L,U,SYMBOL) plots the graph of vector X vs. vector Y with
error bars specified by the vectors L and U. The vectors X,Y, L and U
must be the same length. If X,Y, L and U are matrices then each column
produces a separate line. The error bars are each drawn a distance
of U(i) above and L(i) below the points in (X,Y) so that each bar
is L(i) + U(i) long. SYMBOL is a string that controls the line type,
plotting symbols and color for the X-Y plot.
ERRORBAR(X,Y,L) plots X versus Y with an error bar that is symmetric
about Y and is 2*L(i) long.
ERRORBAR(Y,L) plots Y with error bars [Y-L Y+L].
For example,
x = 1:10;
y = sin(x);
e = std(y)*ones(size(x));
errorbar(x,y,e)
draws symmetric error bars of unit standard deviation.
Cross-Reference Information
This function calls
- any /tools/hpmatlab/toolbox/matlab/ops/any.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- get /tools/hpmatlab/toolbox/matlab/graphics/get.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- min /tools/hpmatlab/toolbox/matlab/datafun/min.m
- nan /tools/hpmatlab/toolbox/matlab/elmat/nan.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- newplot /tools/hpmatlab/toolbox/matlab/graphics/newplot.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- plot /tools/hpmatlab/toolbox/matlab/plotxy/plot.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON