# MATLAB: Prune hidden neurons in neural network

feedforwardhidden neuronsneural networkprune

I am trying to use 'prune' to prune the hidden layers in the following neural network. To start of with I define 1000 hidden neurons.
load('x1Ay1Ax2Fy2A.mat')%For the Neural Network model:BDataARtraining=[x1A y1A];%create a 3rd order data set by staggering observationsBDataARpredictor=[x2F]; %hold out to test forcastdim=size(BDataARtraining,2); %number of variables of multivariatemodel = newfit(BDataARtraining(1:end,1:dim-1)',BDataARtraining(1:end,dim)',100);%create a Feedforward Neural Network with 3 inputs, 1 output and 100 hidden neuronsview(model)model2=prune(model);view(model2)
Please could you explain why model2 still has 100 hidden nodes after pruning (see view(model2) ) as I was expecting some to have been removed by pruning? I have tried starting with different numbers of hidden neurons and also get the same number after pruning as what I started with.

 Ntrials Hmin Hmax