errorbar
Plot data points with error bars.
Syntax
Section titled “Syntax”h = errorbar(y, e)h = errorbar(x, y, e)h = errorbar(x, y, neg, pos, ...)Description
Section titled “Description”Plots (x, y) with vertical error bars. With one error-magnitude argument e, bars extend ±e. With two, neg and pos give asymmetric extents. Trailing name-value pairs control color, line style, and cap size.
Example
Section titled “Example”errorbar(1:5, [10 12 11 13 12], [0.5 0.4 0.6 0.5 0.4])