title: append cell row to matrix
body: <p>I'm reading an excelfile in matlab with</p>
  
  <pre><code>[NUM,TXT,RAW]=xlsread(DATENEXCEL,sSheet_Data);
  </code></pre>
  
  <p>In the excelfile are different datamatrices in different sheets in the following form</p>
  
  <pre><code>Date    Firm1 Firm2 Firm3  ...
  1.1.16  12    12    12
  ...     ...   ...   ...
  </code></pre>
  
  <p>Currently I'm handling the pure data with the NUM object and the header row with the TXT object. My first issue is how to combine the header row with the data rows. Looping does not work, since I predefine the data matrix with</p>
  
  <pre><code>daten=zeros([length(sDatesequence) size(RAW,2)]);
  </code></pre>
  
  <p>because I want to be able to add more data from different sources to that object. Predefining with zeros, however, leads Matlab to expect doubles and not characters. Converting the cell array TXT with cell2mat delivers unsatisfying results:</p>
  
  <pre><code>cell2mat(TXT(1,:))=Firm1Firm2Firm3...
  </code></pre>
  
  <p>hence only a long string vector.</p>
  
  <p><strong>Question:</strong> Is there another way to combine character vectors and double matrices?</p>
  
  <p>Regards,
  Richard</p>