www.gusucode.com > nnet 案例源码 matlab代码程序 > nnet/RefPlotpcExample.m

    %% RefPlotpc
% This example shows 
%% plotpv

% Copyright 2015 The MathWorks, Inc.

p = [0 0 1 1; 0 1 0 1];
t = [0 0 0 1];
plotpv(p,t)
%% plotpc
net = perceptron;
net = configure(net,p,t);
net.iw{1,1} = [-1.2 -0.5];
net.b{1} = 1;
plotpc(net.iw{1,1},net.b{1})