Reading complex textfile (scanFile?)
11 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!