Borrar filtros
Borrar filtros

matlab textscan

3 visualizaciones (últimos 30 días)
Sami
Sami el 7 de Jun. de 2011
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

Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 7 de Jun. de 2011
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

Más respuestas (0)

Categorías

Más información sobre Large Files and Big Data en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by