Help with textscan

Hi everyone,
I'm trying to read in data from a .txt file using textscan and I'm having some trouble. The file is quite large but I only actually need the 9th column of lines 205 to 304.
I know how to select the 9th column; using * to ignore the first 8, and I've figured out how to use Headerlines to ignore the first 204 lines I don't need, but I can't figure out how to tell textscan to stop after reading down to line 304.
Any help appreciated,
Michael

답변 (1개)

Walter Roberson
Walter Roberson 2012년 1월 28일

0 개 추천

Use the N parameter, which goes right after the format. It appears you would want 100 for the value in your case.

댓글 수: 1

Michael Grayling
Michael Grayling 2012년 1월 28일
Cheers, it works now. Not sure how I missed that.

댓글을 달려면 로그인하십시오.

카테고리

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

태그

질문:

2012년 1월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by