有一个Matlab 程序,希望高手指导一下
/ j2 M' ~4 x6 `7 C0 v3 @) \P=-1:0.1:1 T=[-0.96 0.577 -0.0729 0.377 0.641 0.66 0.461 0.1336 -0.201 -0.434 -0.5 -0.1647 0.0988 0.3072 0.396 0.3449 0.1816 -0.0312 -0.2183 -0.3201] P2=-1:0.0025:1 [R,Q]=size(P); [S2,Q]=size(T); S1=5; [W1,B1]=rands(S1,R); [W2,B2]=rands(S2,S1); W10=[0.7771 0.5336 -0.3874 -0.2980 0.0265]; B10=[0.1822;0.6920;-0.1758;0.6830,-0.4614 ]; W20=[-0.1692 0.0746 -0.0642 -0.4256 -0.6433]; B20=[-0.6926];
+ W+ @2 K2 p% Enet=newcf(minmax(P),[5,1],('tansig','purelin'),'traingd'); net.trainParam.epochs=7000; net.trainParam.goal=9.5238e-004; [net,tr]=train(net,P,T); Y=sim(net,P); plot(P,T,'ro') |