MATLAB运行提示错误:要串联的数组的维度不一致。代码如下,求大神指导!
clearP=[0,0,0.003,0.024,0.022,0.009,0.011,0.02,0.006,0.01,0.006,0.008,0.018,0.019;0.0...
clear
P=[0,0,0.003,0.024,0.022,0.009,0.011,0.02,0.006,0.01,0.006,0.008,0.018,0.019;
0.013,0.016,0.015,0.157,0.696,0.331,0.568,0.247,0.093,0.267,0.28,0.351,0.294,0.306;
0.024,0.022,0.039,0.316,0.124,0.062,0.184,0.142,0.06,0.121,0.111,0.091,0.078,0.128;
0.012,0.011,0.012,0.497,0.028,0.014,0.04,0.029,0.011,0.032,0.026,0.018,0.019,0.036;
0,0,0.006,0.007,0.012,0.006,0.011,0.01,0.005,0.009,0.008,0.008,0.008,0.013;
0.023,0.022,0,032,0.036,0.041,0.044,0.041,0.055,0.049,0.048,0.052,0.05,0.033,0.047;
0.032,0.027,0.035,0.076,0.315,0.427,0.403,0.307,0.232,0.296,0.199,0.362,0.199,0.451;
5.88,10.63,16.47,11.328,10.44,4.488,14.293,8.106,7.309,7.303,6.371,6.497,5.79,7.563];
T=[3.5,3.5,3.5,4,3.5,4,3.5,3.4,3.4,3.5,3.5,3.5,3.5,3.5];
[p1,minp,maxp,t1,mint,maxt]=premnmx(P,T);
net=newff(minmax(P),[8,6,1],{'tansig','tansig','purelin'},'trainlm');
net.trainParam.epochs=10000;
net.trainParam.goal=0.0000000001;
[net,tr]=train(net,p1,t1);
a=[0.003;0.015;0.039;0.012;0.006;0.032;0.035;2.703];
b=sim(net,a);
c=postmnmx(b,mint,maxt);
c 展开
P=[0,0,0.003,0.024,0.022,0.009,0.011,0.02,0.006,0.01,0.006,0.008,0.018,0.019;
0.013,0.016,0.015,0.157,0.696,0.331,0.568,0.247,0.093,0.267,0.28,0.351,0.294,0.306;
0.024,0.022,0.039,0.316,0.124,0.062,0.184,0.142,0.06,0.121,0.111,0.091,0.078,0.128;
0.012,0.011,0.012,0.497,0.028,0.014,0.04,0.029,0.011,0.032,0.026,0.018,0.019,0.036;
0,0,0.006,0.007,0.012,0.006,0.011,0.01,0.005,0.009,0.008,0.008,0.008,0.013;
0.023,0.022,0,032,0.036,0.041,0.044,0.041,0.055,0.049,0.048,0.052,0.05,0.033,0.047;
0.032,0.027,0.035,0.076,0.315,0.427,0.403,0.307,0.232,0.296,0.199,0.362,0.199,0.451;
5.88,10.63,16.47,11.328,10.44,4.488,14.293,8.106,7.309,7.303,6.371,6.497,5.79,7.563];
T=[3.5,3.5,3.5,4,3.5,4,3.5,3.4,3.4,3.5,3.5,3.5,3.5,3.5];
[p1,minp,maxp,t1,mint,maxt]=premnmx(P,T);
net=newff(minmax(P),[8,6,1],{'tansig','tansig','purelin'},'trainlm');
net.trainParam.epochs=10000;
net.trainParam.goal=0.0000000001;
[net,tr]=train(net,p1,t1);
a=[0.003;0.015;0.039;0.012;0.006;0.032;0.035;2.703];
b=sim(net,a);
c=postmnmx(b,mint,maxt);
c 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询