I assume you are using patternnet.
Initial weights and data division depend on the current state of the RNG which changes each time it is used. Therefore, intitialize the RNG before the outside loop over hidden nodes and store the state everytime a new net is created.
For example
rng(4151941)
j=0
for h = Hmin:dH:Hmax
j=j+1
.. define net and parameters
for i=1:Ntrials
state(i,j) = rng;
net = configure(net,x,t);
...
end
end
I have posted zillions of examples. Search in NEWSGROUP and ANSWERS using
greg Hmin:dH:Hmax Ntrials
Hope this helps.
Thank you for formally accepting my answer
Greg