[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

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON