title: How to apply cellfun (or arrayfun or structfun) with constant extra input arguments?
body: <p>I want to apply a function to each element of a cell array -- so I have <code>cellfun</code> for that. However, the function takes two extra arguments (a string and a vector), which I want to keep constant for all the elements of the cell array; i.e. I'd like to do something like:</p>
  
  <pre><code>cellfun(@myfun, cellarray, const1, const2)
  </code></pre>
  
  <p>meaning:</p>
  
  <pre><code>for i = 1:numel(cellarray),
    myfun(cellarray{i}, const1, const2);
  end
  </code></pre>
  
  <p>Is there some way to do that without creating intermediate cell arrays containing <code>numel(cellarray)</code> copies of <code>const1</code> and <code>const2</code>?</p>