title: Writing a matlab cell to a csv file
body: <p>So I have a cell that has the following structure:</p>
  
  <pre><code>result{index} = {name, mean(winternights), max(winternights), var(winternights), sum(winternights)};
  </code></pre>
  
  <p>The <strong>name</strong> variable is a string but the rest are numbers. The only way I've found to write a cell to a csv file is the following:</p>
  
  <pre><code>fid = fopen('Measurements.csv','wt');
  for i=1:size(result,1)
      fprintf(fid, '%s,%d,%d,%d,%d\n', result{i,:});
  end
  fclose(fid);
  </code></pre>
  
  <p>But this throws an error: <strong>??? Error using ==> fprintf
  Function is not defined for 'cell' inputs.</strong></p>
  
  <p>What am I doing wrong?</p>