title: Adding a header to a matrix in Matlab
body: <p>I hope you guys are having a nice Tuesday so far. I realize that you cannot add a string header to a numerical matrix in MATLAB. I am trying to add headers to a matrix I currently have and output it to a tab-delimited text file. From my research, I know that the matrix has to be converted into a cell, but I am having trouble saving the cell using dlmwrite.</p>
  
  <p>Here is the matrix I currently have:</p>
  
  <pre><code>  0         0         0
  0.0454    0.0105    0.0105
  0.0907    0.0066    0.0068
  0.1814    0.0038    0.0049
  0.3629    0.0034    0.0040
  0.7258    0.0029    0.0023
  1.4515    0.0002    0.0007
  2.9030    0.0003    0.0005
  </code></pre>
  
  <p>This is what I want:</p>
  
  <pre><code> tau     TOL Adev  FOL Adev
  0.0454    0.0105    0.0105
  0.0907    0.0066    0.0068
  0.1814    0.0038    0.0049
  0.3629    0.0034    0.0040
  0.7258    0.0029    0.0023
  1.4515    0.0002    0.0007
  2.9030    0.0003    0.0005
  </code></pre>
  
  <p>The matrix(3, 7 with zeros in the first row) is called saveData.</p>
  
  <p>I have tried assigning header = ['tau', 'TOL Adev', 'FOL Adev']; and output = {header;saveData}; but I cannot figure out how to use dlmwrite('filename', output, '\t').</p>
  
  <p>Thank you so much for the help!
  -Alex</p>