Statistics Toolbox    
errorbar

Plot error bars along a curve

Syntax

Description

errorbar(X,Y,L,U,symbol) plots X versus Y with error bars specified by L and U. 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). symbol is a string that controls the line type, plotting symbol, and color of the error bars.

errorbar(X,Y,L) plots X versus Y with symmetric error bars about Y.

errorbar(Y,L) plots Y with error bars [Y-L Y+L].

The errorbar function is a part of the standard MATLAB language.

Example


  ecdf ewmaplot