MATLAB: Can anybody help me to sort out this error

digital signal processingimage processingMATLABneural network

I am running neural network for cancer data set with 50000 hidden layer neurons but getting following error:
??? Error using ==> horzcat Out of memory. Type HELP MEMORY for your options.
Error in ==> calcgrad at 96 Nc = [N{i,:}];
Error in ==> calcgx at 98 [gB,gIW,gLW] = feval(net.gradientFcn,net,Q,PD,BZ,IWZ,LWZ,N,Ac,gE,TS);
Error in ==> trainscg at 241 gX = -calcgx(net,X,trainV.Pd,Zb,Zi,Zl,N,Ac,El,perf,Q,TS);
Error in ==> network.train at 216 [net,tr] = feval(net.trainFcn,net,tr,trainV,valV,testV);
Error in ==> create_pr_net at 10 [net,tr] = train(net,inputs,targets);
Please help me to solve this error..

Best Answer

Use the default number of hidden nodes.
Post any error messages.