title: MatLab error: Too many input arguments
body: <p>I have defined a function like this:</p>
  
  <pre><code>function [phi_D,phi_S,v_S] =libem2(n_D,p_D,n_S,vertpts_S,elemvert_S,alpha_S,beta_S,f_S)
  </code></pre>
  
  <p>Clearly <code>libem2</code> takes in 8 arguments. This function is actually a helper function for another function named <code>interiorsquaretest</code>. So when I try to call <code>libem2</code> in <code>interiorsquaretest</code> like this:</p>
  
  <pre><code>[phi_D, phi_S,v_S] =libem2(5,points,32,vertpts,elemvert,a,b,F);
  </code></pre>
  
  <p>I am getting an error saying:</p>
  
  <pre><code>Error using libem2
  Too many input arguments.
  
  Error in interiorsquaretest (line 73)
        [phi_D, phi_S,v_S] =libem2(5,points,32,vertpts,elemvert,a,b,F);
  </code></pre>
  
  <p>How is this possible! I am passing 8 arguments and <code>libem2</code> expects 8 arguments! Please help.</p>