title: Matlab write cell array of numbers into file
body: <p>I have a cell array like this:</p>
  
  <pre><code>cellarr{1}=[1 2 3];
  cellarr{2}=[1 2 3 4 5 6];
  ...
  </code></pre>
  
  <p>Each cell is a vector of numbers with different length. I want to write this cell array into a text file so that i can read it later. The text file should look like this:</p>
  
  <pre><code>1 2 3
  1 2 3 4 5 6
  </code></pre>
  
  <p>If I use <code>dlmwrite('file.txt',cellarr,'\t')</code> it puts all cells into one line. How do I put a new line character after writing a cell to the text file?</p>
  
  <p>P/S: I could use fprintf with two <code>for</code> loops to get what I want. But is there a faster way to do that?</p>