I use the following command to open a documentation page of the Neural Network Toolbox:
web([docroot '\toolbox\nnet\percep10.html']);
At the bottom of the page, it reads:
Note that the default training function for networks created with newp is trains. (You can find this by executing net.trainFcn.)
However, I found the above statement to be incorrect:
net = newp([0 1; -2 2],1);net.trainFcn
The default training function, as shown in the output, is TRAINC instead of TRAINS:
ans = trainc
Best Answer