필터 지우기
필터 지우기

matlab textscan

조회 수: 3 (최근 30일)
Sami
Sami 2011년 6월 7일
Hallo,
do you know how can i select a stack of rows to read from a file?
for example I use
data = textscan(fid_1,'%f%f%f%f','Delimiter','\t','HeaderLines', 10)
in order to read from row nummber 11, but I do not know how to read for example till row 30 (or to read 20 values)
Thanks in advance,
Sami

채택된 답변

Titus Edelhofer
Titus Edelhofer 2011년 6월 7일
Hi,
the third parameter "N" is the one you are looking for
nRows = 20;
data = textscan(fid_1, '%f%f%f%f', nRows, 'Delimiter', ...)
Titus

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by