www.gusucode.com > 《MATLAB神经网络仿真与应用》[张德丰]的所有[程序源代码] > 第2章/li2_6.m
P=[0 0.5 1.2 20;0 0.6 1.1 90]; T=[0 1 0 1] net=newp(minmax(P),1); net.trainParam.epochs=200; net=train(net,P,T); figure; plotpv(P,T); plotpc(net,iw{1},net.b{1}); figure; plotpv(P,T); plotpc(net.iw{1},net.b{1}); %限制坐标起点和终点 axis([-2 2 -2 2])