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
展开
 我来答
lhmhz
高粉答主

2020-07-06 · 专注matlab等在各领域中的应用。
lhmhz
采纳数:7264 获赞数:17015

向TA提问 私信TA
展开全部

MATLAB运行提示错误:要串联的数组的维度不一致。其根本的原因实在是不应该发生的事,就是第六行第三列的数值输入错误【原为0,032,应该为0.032】

修改后,运行可以得到结果。

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式