MATLAB: What is the purpose of each line of this code

Deep Learning Toolboxneural network

This is a code for training Neural Network:
function [net]=createff(Iin,Target)
net = newff(Iin, Target, 10, {'logsig' 'logsig'}, 'trainscg');
net.trainParam.perf = 'sse';
net.trainParam.epochs = 500;
net.trainParam.goal = 1e-5;
net.trainParam.lr=0.15;
net.trainParam.mc=0.8;
net = init(net);
net = train(net, Iin, Target);
end
Please help me to understand this code.

Best Answer

The first line creates a feed-forward backpropagation network. Type this in the command window to learn more:
help newff
The last two lines initialize and train the network.
help init
help train