title: In MATLAB, how can I conveniently supply many arguments to a function?
body: <p>I have a MATLAB function <code>myfun(v1,v2,v3,v4,v5,v6)</code> and a 30x6 matrix <code>A</code>. The way to call the function is by passing each column of <code>A</code> as a separate input argument:</p>
  
  <pre><code>myfun(A(:,1),A(:,2),A(:,3),A(:,4),A(:,5),A(:,6))
  </code></pre>
  
  <p>Just wondering whether there is a better way to do this without explicitly writing out so many times <code>A(:,*)</code>?</p>