Importing text file
조회 수: 1 (최근 30일)
이전 댓글 표시
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
2011년 7월 27일
Provide a little bit more of your example file, you might get better help.
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!