MATLAB Answers

xi
0

datastore for large structured data

xi
さんによって質問されました 2018 年 12 月 19 日
最新アクティビティ Mark Sherstan さんによって 回答されました 2018 年 12 月 19 日
There are Datastores for tabular text files, spreadsheet files, image files, etc. What if my data is a very large binary file, with the format: [size1 X double, size2 X double, ...], while the information of "size1, size2..., offset 1, offset 2..." is stored in a different metafile. I can write my own ReadFcn to load the data into a cell array, each cell is a nX1 double array. but it's way too large to fit the memory. I tried to use filedatastore and define my own Readfcn, but I couldn't use it to access portion of the data like the other datastores. Any suggestions?

  0 件のコメント

サインイン to comment.

1 件の回答

回答者: Mark Sherstan 2018 年 12 月 19 日
 採用された回答

If your file is to big to read into memory consider using the matfile function. You get to write the data straight to the file without loading it into RAM which may help solve your issues.

  0 件のコメント

サインイン to comment.



Translated by