Contents Previous Next Subchapters

Skipping Lines When Reading Data
Syntax read(filemtypenrncnSkip)
See Also read(file, mtype) , read(file, mtype, nr, nc, nSkip, separator)

Description
The argument nSkip must be an integer scalar which specifies the number of lines to skip before loading data.

Examples
If you have sample data file sample.dat that contains
     Sample Data
     One  Two  Three
     1.1  1.2  1.3
     2.1  2.2  2.3
and you enter,
     clear
     file = "sample.dat"
     read(file, "real", 2, 3, 2)
O-Matrix will respond,
     {
     [ 1.1 , 1.2 , 1.3 ]
     [ 2.1 , 2.2 , 2.3 ]
     }