title: Matlab: A new hope for a colon for cells?
body: <p>I found myself doing some unnecessary cell conversions on a regular basis, and couldn't find a function to convert a cell to a comma-separated list. Can this be achieved with through function, rather than <code>myvar{:}</code>?</p>
  <p>a) Is there a function to convert cells to comma-separated lists? <br>
  b) there is a sensible way to reduce the 'annoying part' (see below) to a one-liner, possibly circumventing the cell-array conversion in the first place (given the setup of data/function is fixed/cannot be changed)?</p>
  <pre><code>%this is my data and (silly, silly...) plotting function (consider these as un-changeable/static)
  myvar = randn(10,1); 
  plot_it_already = @(varargin) cellfun(@(x,y) bar(x,y),num2cell(1:numel(varargin)),varargin,'un',0);
  figure; hold on;
  
  %this part is the annoying part (and the part I can change):
  myvar=num2cell(myvar); %seemingly unncessary cell conversion
  plot_it_already(myvar{:}) %&lt;- ... just so we can feed the function with a comma separated list
  </code></pre>