Borrar filtros
Borrar filtros

skipping lines in big file

1 visualización (últimos 30 días)
shilpa s
shilpa s el 12 de Abr. de 2016
Comentada: Walter Roberson el 12 de Abr. de 2016
I have a big data and it contains many lines.First of all i want to skip the first two step and then have to read next 153 lines then I have to skip next two lines then I want to read 153 lines and this process should be continued.Please help me.i am not used to with Matlab. And my project deadline is not too far.

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de Abr. de 2016
textscan() with headerlines 2 and a repeat count of 153. And put all that in a loop until you process as much of the file as you want
  2 comentarios
shilpa s
shilpa s el 12 de Abr. de 2016
could you please generate the matlab code for this action
Walter Roberson
Walter Roberson el 12 de Abr. de 2016
I will not be at my keyboard for a number of hours. It should be easy to find from the textscan documents. But we would need to know the format of the 153 lines to give a complete solution

Iniciar sesión para comentar.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by