我的代码是A,B两个矩阵都是24*24的矩阵,对数据进行了归一化处理,但是运行老是显示串联的矩阵不一致。代码如下SPREAD=21.8;
A=[3.9 4.1 3 3 2.8 2.3 2.9 3.3 3.5 4.1 4.5 5.25.1 6 6.8 7.1 6.5 4 4.9 6.6 8.7 6.2 7 6.2;
5.7 5.7 4.3 3 1.2 1.7 3.6 4.6 5.2 5.9 6.2 5.85.5 5.8 6 5.6 5.9 6.6 8.2 9.2 8.1 8.7 9.9 9.1;
7.8 9 9.2 8.4 12.1 7.3 8.4 6.9 8.3 10.7 12.813 12.1 11.7 12.5 11.2 8.8 7.2 7.4 6.2 6.3 5.9 6.8 5.3;
7.1 6.5 7.4 8.8 6.9 8.9 9.6 6.5 6.3 8.5 7.57.6 11.2 10.4 10.9 12.5 13 12.6 12 11.8 10.6 8.4 7.7 8.3;
7.3 5.1 5.2 7 8.9 8.1 10.1 10.6 9.5 8.5 5.76.9 5.9 6.3 5.5 4.8 5.2 5.4 5.9 6.2 6.8 5.9 7.2 6.3;
5.6 4.9 3.4 2.2 2.4 1.8 1.1 1.5 1.2 2.7 3 3.43.4 3.8 4.3 3.9 2 1.3 4.4 4.2 2.4 2.6 2.1 1.8;
1.7 3.9 4.2 4.5 4 4.2 4.7 4 3.4 3.1 2.4 3 3.33.9 3.3 3.8 3.2 3.1 5.9 8 7.8 6.2 5 3.6;
3.7 3.6 4.3 4.7 4.5 4.9 4.2 3.8 3.4 3 3.6 4.55.4 4.7 4.4 4.7 5.2 5.2 6.7 7.5 7 6.6 6.4 5.1;
6.5 7.2 7.7 7.8 6.3 8.7 7.7 5.8 6.8 9.4 9.69.8 10.7 8 6.2 4.9 4.9 3.2 2.7 4 7.2 9 10 10.6;
11.7 12.1 12.5 12.7 13 12.6 12.7 12.3 10.9 7.13.8 4.3 5 4.4 6.3 5.7 4.7 5.7 8.8 7.7 6.9 6.5 8.2 8.8;
8.1 6.7 5.8 5.2 3 3 3.1 1.1 0.5 0.5 0.8 0.60.5 0.9 0.9 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