how to read several ascii text file in a folder and avoid the header in each text file
1 回表示 (過去 30 日間)
古いコメントを表示
I have several number of ascii text files in a folder. each text file contains a column data and a header lines. I wants to read the data from all the text files and arrange the data into a single variable. also I wants to read the header lines and extract the variables from the header files. how to make a program for that?
0 件のコメント
回答 (1 件)
dpb
2014 年 9 月 20 日
Start w/ the FAQ...
I strongly recommend the DIR solution. As for the header, simply write an appropriate format string to parse the required data from it, then read the rest of the file. See the doc under textscan and friends for details and there are a zillion threads on the forum illustrating specific cases as guides as well as the examples in the documentation.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!