title: Feed Forward Neural Network Matlab OCR
body: <p>I'm trying to create an ocr using matlab newff 
  with images of characters size(32*32)</p>
  
  <pre><code>net = newff([0 255],[10 26],{'logsig' 'logsig'},'traingdx'); 
  </code></pre>
  
  <p>using P as an input matrix 
  and T as an target T=eye(26,26);</p>
  
  <pre><code>net = train(net, P, T);
  </code></pre>
  
  <p>but i get this error 
  Input data size does not match net.inputs{1}.size.
  how should the code be to let it works ?</p>