Importing large CSVs and consolidating in one matrix.
1 回表示 (過去 30 日間)
古いコメントを表示
Hello I need to consolidate around 800 CSVs(total size ~ 6GB) into 1 matrix. I need to process(mainly filtering) the data and plot the graphs. What should be the approach of the task so that the processing time in loading the CSVs and plotting takes minimum time.
TIA
0 件のコメント
採用された回答
Titus Edelhofer
2015 年 1 月 12 日
Hi Pranjal,
if you have R2014b available, then datastore + mapreduce would be the choice of tools.
Titus
2 件のコメント
Titus Edelhofer
2015 年 1 月 12 日
In this case use textscan for reading the data. Each file is probably not too large (assuming the 800 csv are somewhat similar in size), i.e., about 7-10 MByte. Therefore reading each file in one sweep should be no problem.
You might use the Parallel Computing Toolbox (parfor) to read the files in parallel. Either process the data right away or save to .mat so that you can read them later faster in a loop.
Titus
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!