Reading complex textfile (scanFile?)

1 visualización (últimos 30 días)
erik hellström
erik hellström el 27 de Feb. de 2013
Hi
I have measurement data in large (60MB) txtfiles, with headerrow and mixed numbers and strings (and sometimes strings such as ERROR in the place of where i want to load numbers).
What is best way to do this? I need to skip first row, then from the other row (columns separated by ':' which doesnt seem to work for matlab scanFile). I only need to save around 5 out of 30 column data from each row and want to be able to investigate the data of a certain slot before deciding where to store it (if ERROR is in the place of a measurment number for example). A could use fgets() to load a line by line and then try to extract data for the line at position 6,11,22 etc but this will be slow with 100 000 lines...
Thanks a lot Erik

Respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by