MATLAB: More than one hidden layer

hidden layersneural network

Hi, I am using the command net =newff(p,t,3);
So, my neural netwok has one hidden layer with 3 neurons.How can i increase the number of hiiden layers?
And how can change the activations functions from default?
Please i need an example.
Thanks

Best Answer

Dimitris used the older version of newff
net = newff(minmax(p),[H1 H2 O],{'tansig' 'tansig' 'tansig'});
for a net with I-H1-H2-O node topology. The newer version is
net = newff(p,t,[H1 H2],{'tansig' 'tansig' 'tansig'});
Hope this helps.
Greg