满意答案
we5556
2013.03.14
采纳率:44% 等级:12
已帮助:8003人
>> p=[6410646165166593667667416795
749.4950.5966.51011.031200.181418.091495.45
1535.291844.92245.92711.183370.964198.934905.22
1638.421963.92137.772390.292789.783234.643662.15
1331.21557.417652029.42403.72965.53527.8
385.33467.57591.31749.191032.8713251013.77
5476259769671287414483364180170196676];
>> pn=premnmx(p)
pn =
-1.0000 -0.7351 -0.4494 -0.0494 0.3818 0.7195 1.0000
-1.0000 -0.4609 -0.4180 -0.2986 0.2084 0.7926 1.0000
-1.0000 -0.8163 -0.5783 -0.3021 0.0894 0.5808 1.0000
-1.0000 -0.6783 -0.5065 -0.2569 0.1379 0.5775 1.0000
-1.0000 -0.7940 -0.6050 -0.3643 -0.0235 0.4880 1.0000
-1.0000 -0.8250 -0.5616 -0.2256 0.3782 1.0000 0.3376
-1.0000 -0.9294 -0.8257 -0.7268 -0.5969 0.7674 1.0000
%%其归一化算法:
2*(m-min)/(max-min)-1
premnmx该函数代码中,对p矩阵进行转置求最小值和最大值,然后再转置,得到的就是行的最小值和最大值。
10分享举报