matlab程序改错,求大神学霸!a=[238.6237.1231.7232.7228.7240.4242.6241.0240.6180.7143.0239.2];p=[a(1:6);a(2:7);a(3:8);a(4:9)];T=[a(2:7);a(3:8);a(4:9);a(5:10)]';[p1,minp,maxp]=premnmx(p);[T1,minT,maxT]=premnmx(T');net=newff(minmax(p1),[8,2],{'lo

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 07:32:57
matlab程序改错,求大神学霸!a=[238.6237.1231.7232.7228.7240.4242.6241.0240.6180.7143.0239.2];p=[a(1:6);a(2:7);a

matlab程序改错,求大神学霸!a=[238.6237.1231.7232.7228.7240.4242.6241.0240.6180.7143.0239.2];p=[a(1:6);a(2:7);a(3:8);a(4:9)];T=[a(2:7);a(3:8);a(4:9);a(5:10)]';[p1,minp,maxp]=premnmx(p);[T1,minT,maxT]=premnmx(T');net=newff(minmax(p1),[8,2],{'lo
matlab程序改错,求大神学霸!
a=[238.6
237.1
231.7
232.7
228.7
240.4
242.6
241.0
240.6
180.7
143.0
239.2];
p=[a(1:6);a(2:7);a(3:8);a(4:9)];
T=[a(2:7);a(3:8);a(4:9);a(5:10)]';
[p1,minp,maxp]=premnmx(p);
[T1,minT,maxT]=premnmx(T');
net=newff(minmax(p1),[8,2],{'logsig','purelin'},'trainlm','learnwh');
net.trainParam.epochs=2000;
net.trainParam.goal=0.0001;
net.trainParam.show=10;
net.trainParam.lr=0.8;
net.trainParam.mc=0.6;
net=train(net,p1,T1);
r1=sim(net,p1);
yu=postmnmx(r1,minT,maxT);
y1=[a(1),yu(1,1:6),yu(2,6),yu(3,6),yu(4,6)];
e1=(y1-a(1:10));
f1=mae(e1);
f2=mse(e1);
f3=sse(e1);
F1=[f1,f2,f3]
pt1=[a(2:7);a(3:8);a(4:9);a(5:10)];
[py1,minpt1,maxpt1]=premnmx(pt1);
ry1=sim(net,py1);
yc1=postmnmx(ry1,minpt1,maxpt1);
yu1=yc1(4,6)
pt2=[a(3:8);a(4:9);a(5:10);[a(6:10),yu1]];
[py2,minpt2,maxpt2]=premnmx(pt2);
ry2=sim(net,py2);
yc2=postmnmx(ry2,minpt2,maxpt2);
yu2=yc2(4,6)

matlab程序改错,求大神学霸!a=[238.6237.1231.7232.7228.7240.4242.6241.0240.6180.7143.0239.2];p=[a(1:6);a(2:7);a(3:8);a(4:9)];T=[a(2:7);a(3:8);a(4:9);a(5:10)]';[p1,minp,maxp]=premnmx(p);[T1,minT,maxT]=premnmx(T');net=newff(minmax(p1),[8,2],{'lo
楼主,首先,把[8,2]换成[8,24];
其次,把y1=[a(1),yu(1,1:6),yu(2,6),yu(3,6),yu(4,6)];换成y1=[a(1),yu(1:6)‘,yu(12),yu(18),yu(24)];(记得yu(1:6)上面转置)
再次,把e1=(y1-a(1:10));换成e1=(y1’-a(1:10));
然后,yu1=yc1(4,6)换成yu1=yc1(24)
再者,pt2=[a(3:8);a(4:9);a(5:10);[a(6:10),yu1]];换成pt2=[a(3:8);a(4:9);a(5:10);[a(6:10);yu1]];
最后,yu2=yc2(4,6)换成yu2=yc2(24)
我不知道有没有揣测到楼主的意思
还望能互相学习
谢谢!