필터 지우기
필터 지우기

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 CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by