title: matlab Not enough input arguments error
body: <p>I am brand new to matlab. I got an error that saying " Not enough input arguments"</p>
  
  <pre><code>function ckl = cofact(A,k,l)
  % Cofactor ckl of the a_kl entry of the matrix A.
  [m,n] = size(A);
  if m ~= n
     error('Matrix must be square')
  14
  end
  B = A([1:k-1,k+1:n],[1:l-1,l+1:n]);
  ckl = (-1)^(k+l)*det(B);
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>&gt;&gt; cofact
  Error using cofact (line 3)
  Not enough input arguments.
  </code></pre>