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


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