data1=y-mean(y); %数据零均值化n=length(data1); %求取数据长度jfgz=sqrt(sum(data1.^2)/n); %提取均方根值
http://wenku.baidu.com/view/bc891d89d0d233d4b14e691a.html