read file variables methods

2 ビュー (過去 30 日間)
Talmon Alexandri
Talmon Alexandri 2016 年 11 月 11 日
コメント済み: per isakson 2016 年 11 月 14 日
I got a large data matrix (3Gb) of signal data which I saved to a .mat file. Since the data size is large I figured out it will be wiser to access the file and read each time a block of data, process it and move to the next block instead of loading the complete file. I'm wondering should I use the matfile method, fopen and fread or should I use a datastore and read command. What is faster from the processing point of view and easier to work with? Or any other considerations? Thanks
  3 件のコメント
Talmon Alexandri
Talmon Alexandri 2016 年 11 月 12 日
data set - plain numerical array 10 million lines by 48 columns Total RAM size - 3G
per isakson
per isakson 2016 年 11 月 14 日
Given
  1. "large data matrix (3Gb) of signal data which I saved to a .mat file"
  2. "Total RAM size - 3G[B]"
  3. "[one] plain numerical array 10 million lines by 48 columns"
I assume the mat-file is version 7.3, because that's needed to store an array of that size.
It's the easiest to work with and I don't think there is any other way that is significantly faster.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 11 月 11 日
I think maybe using memmapfile and a binary file might be easiest for access.

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by