How to skip the first row while reading a textfile?
5 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
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 Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!