Introduction To Neural Networks Using Matlab 6.0 Sivanandam Pdf -
% Train the network net.trainParam.epochs = 1000; net.trainParam.goal = 1e-5; net = train(net, X, T);
% Create a feedforward network with one hidden layer (2 neurons) net = newff([0 1; 0 1], [2 1], 'tansig', 'purelin', 'trainlm'); % Train the network net