フィルターのクリア

Importing text file

1 回表示 (過去 30 日間)
Ryan Freeman
Ryan Freeman 2011 年 7 月 26 日
I want to import data from a text file that has many headers. For examlple the file would look like:
Frame(1/8139) red green blue 1 5 7 2 5 12
It is very long and each frame has the same header. Is there a way to skip over the lines with letters and only import the data?
  1 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 7 月 27 日
Provide a little bit more of your example file, you might get better help.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 7 月 27 日
If you use textscan() and set the CommentStyle to be 'F', then everything from the F to the end of the line will be skipped.

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by