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