title: Problems Using Textscan to Read Multiple Lines
body: <p>I'm a bit new to data import using Matlab.
  Basically, I have an Ascii file. It has 13 Header Lines, along with 765 columns and ~3500 rows of data. I am attempting to import the data into a 3500 x 765 matrix in Matlab. I've tried the following:</p>
  
  <pre><code>fileID = fopen('filename');
  formatspec = [repmat('%f ', [1,765])];
  raw_data=textscan(fileID,formatspec, 'Headerlines',13,'delimiter','\t');
  </code></pre>
  
  <p>It successfully skips the 13 header lines. However, it only gives me a 1 x 765 matrix containing only the data from the first row.</p>
  
  <p>Perhaps I have misunderstood just how I am supposed to use textscan, so any help in getting my other ~3499 rows of data would be very well appreciated.</p>
  
  <p>~Thank You</p>
  
  <p><strong><em>NOTE</em></strong></p>
  
  <p>The Data File itself is formatted as follows. The First 13 lines do not contain the data itself. All lines following that contain sets of data similar to what will be pasted below, extending for 700+ columns and 3000+ rows.</p>
  
  <p>Wyko ASCII Data File Format 0   1   1   </p>
  
  <p>X Size  3571        </p>
  
  <p>Y Size  765     </p>
  
  <p>Block Name  Type    Length  Value</p>
  
  <p>Wavelength  7   4   72.482628</p>
  
  <p>Aspect  7   4   1</p>
  
  <p>Pixel_size  7   4   0.00196</p>
  
  <p>StageY  7   4   -0.048055</p>
  
  <p>Magnification   8   8   5.05</p>
  
  <p>StageX  7   4   0.214484</p>
  
  <p>ScannerPosition 7   4   3490.000732</p>
  
  <p>ScannerSpeed    7   4   3.165393</p>
  
  <p>RAW_DATA    3   10927260</p>
  
  <p>-10976.61035    -10977.07324    -10981.07422    -10985.6084     ...</p>
  
  <p>-10967.41309    -10963.31836    -10966.75195    -10980.40723    ...</p>
  
  <p>-10969.08496    -10976.03711    -10976.62988    -10964.23731    ...</p>
  
  <p>-10974.12695    -10976.61133    -10979.2627     -10973.57813    ...</p>
  
  <p>-10969.21094    -10966.56543    -10973.74512    -10983.41797    ...</p>
  
  <p>-10970.18359    -10980.82715    -10968.00195    -10975.58594    ...</p>
  
  <p>-10980.41016    -10982.39356    -10982.74316    -10974.51563    ...</p>
  
  <p>-10972.31641    -10984.00488    -10987.89453    -10976.23633    ...</p>