%% Solve Simple Classification Problem Using Perceptron
% This example shows how to use a perceptron to solve a simple 
% classification logical-OR problem.

% Copyright 2015 The MathWorks, Inc.

x = [0 0 1 1; 0 1 0 1];
t = [0 1 1 1];
net = perceptron;
net = train(net,x,t);
view(net)
y = net(x);