title: Summing a cell array?
body: <p>I have a function that takes in any number of arguments into a cell array</p>
  
  <pre><code>function sumThese(varargin)
  
  subtotals = cellfun(@sum, varargin);
  total = sum(subtotals);
  
  disp(total)
  end 
  </code></pre>
  
  <p>This works for arrays and numbers, except as soon as I have a square matrix it doesn't. It'll tell me: </p>
  
  <blockquote>
    <p>Non-scalar in Uniform output, set 'UniformOutput' to false.</p>
  </blockquote>
  
  <p>However if I set <code>'uniformoutput'</code> to <code>false</code>, I get this error now: </p>
  
  <blockquote>
    <p>Undefined function or method 'sum' for input arguments of type 'cell</p>
  </blockquote>
  
  <p>How to approach this?</p>