capaplot
Process capability plot
Syntax
p = capaplot(data,specs)
p = capaplot(ax,data,specs)
[p,h] = capaplot(___)
Description
p = capaplot(data,specs)
estimates the mean and
variance for the observations in the input vector data
, and plots the
pdf of the resulting normal distribution. The observations in data
are assumed to be normally distributed. The output p
is the
probability that a new observation from the estimated distribution falls within the
range specified by the two-element vector specs
. The portion of the
distribution between the lower and upper bounds specified in specs
is
shaded in the plot.
capaplot
treats NaN
values in
data
as missing, and ignores them.
p = capaplot(ax,data,specs)
plots into the axes specified by ax
instead of the current axes
(gca
). (since R2024a)
[p,h] = capaplot(___)
additionally
returns handles to the plot elements in h
, using any of the input
argument combinations in the previous syntaxes.