www.pudn.com > Classify.rar > unfeasible_1.m, change:2009-07-27,size:249b


P = [0.5 1 2 3;2 1 1 2]; 
T = [0 1 0 1]; 
net = newp([-1 3;-1 3]); %建立网络 
handle = plotpc(net.iw{1},net.b{1}); 
net.trainParam.epochs = 100; 
net = train(net,P,T); 
figure; 
plotpv(P,T); 
handle = plotpc(net.iw{1},net.b{1},handle); %画出分界线