Contents Previous Next Subchapters

Plotting Error Bars
Syntax errorbar(xywh)
See Also gplot , gbar , ghist

Description
Plots error bars (with width w and height h) in the y direction for the curve defined by (xy), where x and y are each integer, real, or double-precision column vectors, and w and h are each integer, real, or double-precision scalars or column vectors. The vectors x and y must have the same dimension. If w is not a scalar, it must have the same dimension as x. If h is not a scalar, it must have the same dimension as x.

Example
     x = seq(4)
     y = seq(4)
     w = .2
     h = .4
     errorbar(x, y, w, h)

returns the following plot: