matlab statistic 2nd modification