title: Export uitable's data to a spreadsheet Excel in Matlab
body: <p>I have designed a GUI which has an uitable and a push button which, when is pressed, allows to export the uitable's data to an Excel spreadsheet. My problem is that I want to add the uitable's headers to the matrix Select which has the numeric values. This matrix is used by the pushbutton callback, as seen below:</p>
  
  <pre><code>htable = uitable(...);
  ...
  SelecY = get(htable,'Data');
  </code></pre>
  
  <p>Callback of the pushbutton</p>
  
  <pre><code>    function hExpExcelCallback(src,evt)
          FileName = uiputfile('*.xls','Save as');
          xlswrite(FileName,SelecY),
      end
  </code></pre>