本帖最后由 wangguoqing1993 于 2019-4-9 13:06 编辑
x(1,:)=[1205.1 1500.7 1576.4 1783.7 1558];
x(2,:)=[937.4 1049.7 949.3 951.1 952.8];
x(3,:)=[62.9 83.4 108.6 121.3 155.3];
x(4,:)=[3080 3145.4 3337.1 3240.7 3454.6];
x(5,:)=[4695.2 4418.2 4192.9 3883 3595.6];
x(6,:)=[1% 2.7% 0.3% 0.3% 2.84%];
x(7,:)=[3669.7 2237.6 2204.6 2770.6 2003.7];
x(8,:)=[111.31 158.83 89.31 86.12 76];
m=8; n=5;
x0=[1720.2 1574.2 1557.3 1604.6 1474.5];
for i=1:n
avg(i)=0; %均值初始化
end
for i=1:m
for j=1:n
avg(j)=avg(j)+x(i,j);
end
end %求均值序列
for i=1:n
avg(i)=avg(i)/m;
end
for j=1:m
for i=1:n
x(j,i)=x(j,i)/avg