Reading complex textfile (scanFile?)

11 次查看(过去 30 天)
erik hellström
erik hellström 2013-2-27
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by