Development Environment    

Importing Numeric Data with Text Headers

To import an ASCII data file that contains text headers, use the textread function, specifying the headerlines parameter. textread accepts a set of predefined parameters that control various aspects of the conversion. (For a complete list of these parameters, see the textread reference page.) The headerlines parameter lets you specify the number of lines at the head of the file that textread should ignore.

For example, the file grades.dat contains formatted numeric data with a one-line text header.

To import this data, use this command:


  Importing Delimited ASCII Data Files Importing Mixed Alphabetic and Numeric Data