title: Matlab - Using special characters in table header
body: <p>I have constructed a table with data from a struct and now wish to add custom headers to the columns before exporting the table. I found the following command:</p>
  
  <pre><code>T.Properties.VariableNames{'OldHeader'} = 'NewHeader';
  </code></pre>
  
  <p>This command however does not allow me to use spaces or special characters for my headers. My table contains the output from processed lab data and I wish to have headers like "Vol. [mL]" and "Conc. [wt%]".</p>
  
  <p>To illustrate using the example from <a href="http://se.mathworks.com/help/matlab/ref/struct2table.html" rel="nofollow">matlab documentation</a>:</p>
  
  <pre><code>S.Name = {'CLARK';'BROWN';'MARTIN'};
  S.Gender = {'M';'F';'M'};
  S.SystolicBP = [124;122;130];
  S.DiastolicBP = [93;80;92];
  T = struct2table(S)
  T.Properties.VariableNames{'Gender'} = 'Sex';
  </code></pre>
  
  <p>The above works, but restricts me to normal characters and no spaces. My question is how to change "Gender" to "Vol. [mL]" - if even possible?</p>