https://it.mathworks.com/help/stats/controlrules.html
controlrules - Western Electric and Nelson control rules - MATLAB
This MATLAB function returns violation indicators for the points in the numeric vector X, using the rules in rules, center line values cl, and standard errors...
western electricnelsoncontrolrulesmatlab