p =[1299.86 1293.44 1307.2 1294.29 1292.97 1312.08 1343.4 1356.13 1358.02 1312.95 1274.26 1265.24;
1244.45 1232.33 1216.76 1196.8 1175.1 1149.92 1122.02 1093.35 1044.15 1007.98 995.56 978.44;
973.93 942.22 924.2 922.59 914.55 922.44 936.47 958.18 970.9 975 976.38 1019.62;
1053.33 1105.43 1162.47 1139.39 1139.31 1200.77 1217.08 1213.63 1201.72 1121.67 1048.84 996.56];
t=[1003.13 1005.94 1012.96 1024.07 1029.7 1043.59 1054.42 1046.58 1023.24 965.85 966.17 1032.78];
[pn,minp,maxp,tn,mint,maxt]=premnmx(p,t);
net=newff([minp,maxp],[17,1],{'tansig','purelin'},'traingd');
net.trainParam.epochs=5000;%
net.trainParam.lr=0.05;%net.trainParam.goal=0.001;
net.trainParam.show=10;
net=train(net,pn,tn);
an=sim(net,pn);
a=postmnmx(an,mint,maxt);
net.IW{1};
net.LW{2};
pnew=[1051.9 1050.99 1067.11 1071.24 1072.19 1068.45 1075.51 1079.3 1111.98 1154.14 1234.45 1271.55;
1262.32 1262.98 1216.31 1271.95 1334.18 1319.9 1326.5 1346.04 1358.32 1299.31 1238.41 1209.4;
1203.37 1189.84 1201.77 1220.79 1207.59 1202.18 1223.35 1239.92 1263.31 1251.63 1199.62 1171.74;
1176.12 1183.22 1205.24 1218.33 1276.08 1336.78 1361.63 1367.13 1366.45 1307.63 1322.12 1433.46];
z=sim(net,pnew);
pnewn=tramnmx(pnew,minp,maxp);
anewn=sim(net,pnew);
anew=postmnmx(anewn,mint,maxt);
运行上述代码之后显示:(此文件文件名为“xianhuo”)
Warning: PREMNMX is an obsolete function.
>
In xianhuo at 8
Use MAPMINMAX instead, type HELP PREMNMX for bug warning.
Warning: NEWFF used in an obsolete way.
> In xianhuo at 9
See help for NEWFF to update calls to the new argument list.
Warning: TRAMNMX is an obsolete function.
> In xianhuo at 25
Use MAPMINMAX instead.
看了好久也没看出来哪儿出问题了,还请大家帮忙看一下~谢谢啦:)