title: Can someone help Train this Neural Network in Matlab and check what I am doing?
body: <p>Firstly - this is how my data looks :</p>
  
  <pre><code>in1 = [a vector of [5189,1]]
  in2 = [a vector of [5189,1]]
  in3 = [a vector of [5189,1]]
  
  out = [a vector of [5189,1]]
  </code></pre>
  
  <p>What I'm trying to do is predict the output using the 3 inputs/</p>
  
  <p>Now, I've been training a radial basis network doing the follow steps :</p>
  
  <pre><code>net = newrbe([in1';in2';in3'], out', 100);
  </code></pre>
  
  <p>And then obtaining the predictions using a testing set with the <code>sim</code> function. Firstly, is this the correct way to do what I am supposed to be doing? I'm getting a good answer / prediction, hence I assumed it is fine.</p>
  
  <p>Now, I wanted to train a recurrent neural network using the same methodology. I did the following as per the manual at : <a href="http://www.mathworks.com/help/nnet/ref/layrecnet.html" rel="nofollow noreferrer">http://www.mathworks.com/help/nnet/ref/layrecnet.html</a></p>
  
  <p>So ,</p>
  
  <pre><code>net = layrecnet(1:2,100);
  </code></pre>
  
  <p>and then I simply did <code>[Xs,Xi,Ai,Ts] = preparets(net,X,C);</code> </p>
  
  <p>where <code>X = [in1';in2';in3']</code>
  and   <code>C = out';</code></p>
  
  <p>And I got the error : </p>
  
  <pre><code>Error using vertcat
  Dimensions of matrices being concatenated are not consistent.
  </code></pre>
  
  <p>Hence, using the answer at <a href="https://stackoverflow.com/questions/10080079/index-exceeds-matrix-dimensions-neural-network-function-error">&quot;Index Exceeds Matrix Dimensions&quot; neural network function error</a></p>
  
  <p>I did <code>X =  num2cell([in1',in2',in3']);</code>
    and <code>C = num2cell(out');</code></p>
  
  <p>And then tried the <code>preparets</code> function again to get :</p>
  
  <pre><code>Error using preparets (line 161)
  The number of input signals does not match network's non-feedback inputs.
  </code></pre>
  
  <p>OR </p>
  
  <pre><code>Error using network/train (line 293)
  Number of inputs does not match net.numInputs.
  </code></pre>
  
  <p>Can someone teach / explain to me just how should I get this thing done? I have a decent idea of what a recurrent neural network is, however this problem seems to be a matlab problem. Please tell me just how should I give the inputs / feedbacks etc? Thank you very much!</p>