www.gusucode.com > stats 源码程序 matlab案例代码 > stats/CapabilityStudiesExample.m

    %% Capability Studies
%% Randomly generate sample

% Copyright 2015 The MathWorks, Inc.

rng default; % For reproducibility
data = normrnd(3,0.005,100,1);
%% Compute capability indices
S = capability(data,[2.99 3.01])
%% Create the capability plot
capaplot(data,[2.99 3.01]);
grid on