Grubbs criterion based on MATLAB