Line plot with error bars
errorbar(___,
sets
the orientation of the error bars. Specify ornt
)ornt
as 'horizontal'
for
horizontal error bars or 'both'
for both horizontal
and vertical error bars. The default for ornt
is 'vertical'
,
which draws vertical error bars. Use this option after any of the
previous input argument combinations.
errorbar(___,
sets
the line style, marker symbol, and color. For example, linespec
)'--ro'
plots
a dashed, red line with circle markers. The line style affects only
the line and not the error bars.
errorbar(___,
modifies
the appearance of the line and error bars using one or more name-value
pair arguments. For example, Name,Value
)'CapSize',10
sets
the lengths of the caps at the end of each error bar to 10 points.
errorbar(
creates
the plot in the axes specified by ax
,___)ax
instead of
in the current axes. Specify the axes as the first input argument.
returns
one e
= errorbar(___)ErrorBar
object when y
is
a vector. If y
is a matrix, then it returns one ErrorBar
object
per column in y
. Use e
to modify
properties of a specific ErrorBar
object after it
is created. For a list of properties, see ErrorBar Properties.