How to skip the first row while reading a textfile?

5 Ansichten (letzte 30 Tage)
TP Das
TP Das am 15 Jan. 2015
Kommentiert: TP Das am 13 Feb. 2015
I have a textfile with the first row comprising strings. The rest of the rows are numbers. I need to read only the numbers (second row onwards upto the end of the file). The number of rows is not fixed. Any solution?

Akzeptierte Antwort

Geoff Hayes
Geoff Hayes am 15 Jan. 2015
TP - try using importdata and specify the number of header lines (in your case, 1) which cause those header lines to be skipped. Other MATLAB file reader functions (for data import) can do the same thing too.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by