title: Matlab neural network is not learning
body: <p>Can someone please tell me if my code is wrong while trying to train my network for pattern recognition? I am desperate, for trying everything, since changing the Hn, epochs, normalized my data, etc... But the network does not seems to develop. </p>
  
  <p>Here is the code</p>
  
  <pre><code>net = newff(p,t,15,{},'traingd');
  net.divideParam.trainRatio = 70/100;  % Adjust as desired
  net.divideParam.valRatio = 15/100;  % Adjust as desired
  net.divideParam.testRatio = 15/100;  % Adjust as desired
  net.trainParam.epochs = 10000;
  net.trainParam.goal = 0.01;
  net.trainParam.show = 25;
  net.trainParam.time = inf;
  net.trainParam.min_grad = 1e-10;
  net.trainParam.max_fail = 10;
  net.trainParam.sigma = 5.0e-5;
  net.trainParam.lambda = 5.0e-7;
  net.trainParam.mu_max = 1e-20;
  net.trainParam.lr = 0.001; 
  
  % Train and Apply Network
  [net,tr] = train(net,p,t);
  outputs = sim(net,p);
  
  % Create P.
  
  % Plot
  plotperf(tr)
  plotfit(net,p,t)
  plotregression(t,outpts)
  </code></pre>
  
  <p>And I run it exactly like this. <code>p</code> and <code>t</code> are my inputs and targets respectivly. 
  Is it only me, that when trying to run the toolbox (nprtool) is not able to introduce the target, unless it comes from the demos?</p>