title: write cell array of combined string and numerical input into text file
body: <p>Consider the following:</p>
  
  <pre><code>DateTime = {'2007-01-01 00:00';'2007-02-01 00:00';'2007-03-01 00:00'};
  Headers = {'Datetime','Data'};
  Dat = [100,200,300];
  
  Data = [DateTime,num2cell(Dat')];
  Final = [Headers;Data];
  </code></pre>
  
  <p>How would I write the data in 'Final' into a tab delimited text file. I know how to use fopen, fprintf and so on when the variable is composed of solely numerical inputs but am struggling to solve this problem. I have tried:</p>
  
  <pre><code>fid = fopen('C:\Documents\test.txt','wt');
  fprintf(fid,'%s\t%s\n',Final{:});
  fclose(fid);
  </code></pre>
  
  <p>However, this does not generate a text file that is in the same format as that generated in matlab. How can this problem be solved?</p>