Importing text file

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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Standard File Formats에 대해 자세히 알아보기

질문:

2011년 7월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by