Reading complex textfile (scanFile?)
11 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!