12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

errorbarPurpose2errorbarPlot error bars along a curveSyntaxDescriptionerrorbar(Y,E)errorbar(X,Y,E)errorbar(X,Y,L,U)errorbar(...,LineSpec)h = errorbar(...)Error bars show the confidence level of data or the deviation along a curve.errorbar(Y,E) plots Y and draws an error bar at each element of Y. The errorbar is a distance of E(i) above and below the curve so that each bar issymmetric and 2*E(i) long.errorbar(X,Y,E) plots X versus Y with symmetric error bars 2*E(i) long. X, Y,E must be the same size. When they are vectors, each error bar is a distance ofE(i) above and below the point defined by (X(i),Y(i)). When they arematrices, each error bar is a distance of E(i,j) above and below the pointdefined by (X(i,j),Y(i,j)).errorbar(X,Y,L,U) plots X versus Y with error bars L(i)+U(i) long specifyingthe lower and upper error bars. X, Y, L, and U must be the same size. When theyare vectors, each error bar is a distance of L(i) below and U(i) above the pointdefined by (X(i),Y(i)). When they are matrices, each error bar is a distanceof L(i,j) below and U(i,j) above the point defined by (X(i,j),Y(i,j)).errorbar(...,LineSpec) draws the error bars using the line type, markersymbol, and color specified by LineSpec.h = errorbar(...) returns a vector of handles to line graphics objects.RemarksWhen the arguments are all matrices, errorbar draws one line per matrixcolumn. If X and Y are vectors, they specify one curve.2-129

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!