title: Matlab Error: Too many output arguments
body: <p>I use the following function in a <em>Matlab</em> program: </p>
  
  <pre><code>...   
  ...   
  ...  
  [A, B, C, D, E] = function (F, G, H, I, J, K, L, M, N, O, P)  
  ...  
  ...  
  ...  
  </code></pre>
  
  <p>and I get the following error message:  </p>
  
  <pre><code>??? Error using ==&gt; function  
  Too many output arguments.  
  </code></pre>
  
  <p><em>A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P</em> are the vectors of inputs and outputs of the function.  </p>
  
  <p>but the same program works very well when I replaced the line of the function by its full script! </p>
  
  <p>Can you tell me where I should look to find the error?</p>