Wednesday, 8 March 2017

Code for SLP (A.N.N)

% inputs
x = [0 0 1 1; 0 1 0 1];
% outputs
t = [0 1 1 1];
% intializing perceptrons
net = perceptron;
% training perceptrons
net = train(net,x,t);

% view(net)

y = net(x);
% calculating error
e = t-y;
plot (t,e);

The following Hyper link contains the executable code
SLP CODE