필터 지우기
필터 지우기

How to skip the first row while reading a textfile?

조회 수: 4 (최근 30일)
TP Das
TP Das 2015년 1월 15일
댓글: TP Das 2015년 2월 13일
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?

채택된 답변

Geoff Hayes
Geoff Hayes 2015년 1월 15일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by