title: MATLAB textscan headerlines
body: <p>When I try to use <code>headerlines</code> with <code>textscan</code> to skip the first line of the text file, all of my data cells are stored as empty.</p>
  
  <pre><code>fid = fopen('RYGB.txt');
  A = textscan(fid, '%s %s %s %f', 'HeaderLines', '1'); 
  fclose(fid);
  </code></pre>
  
  <p>This code gives</p>
  
  <pre><code>1x4 Cell
  [] [] [] []
  </code></pre>
  
  <p>Without the <code>headerlines</code> part and without a first line that needs to be skipped in the text file, the data is read in with no problem. It creates a <code>1x4 cell</code> with data cells containing all of the information from the text file in columns.</p>
  
  <p>What can I do to to skip the first line of the text file and read my data in normally?</p>
  
  <p>Thanks</p>