How can I load a large (~2.3Gb) .mat file?

12 ビュー (過去 30 日間)
Madeline Myers
Madeline Myers 2025 年 2 月 25 日
編集済み: Sahas 2025 年 3 月 6 日
I have a large 2.3Gb .mat file that was created with this version of matlab (R2017a) and on this computer and have not had trouble loading the file in the past. After using "clear", I can no longer load the file and receive the error: Error using load: Cannot read file.
  2 件のコメント
Torsten
Torsten 2025 年 2 月 25 日
Better contact Mathworks Support for help:
Sahas
Sahas 2025 年 3 月 4 日
Can you try loading the MAT file in another system, and a new MAT file ~2.3 GB on the same system so that the issue can be localized further?

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

回答 (1 件)

Sahas
Sahas 2025 年 3 月 6 日
編集済み: Sahas 2025 年 3 月 6 日
As per my understanding, you are cannot load a MAT file in your workspace whose size is around 2.3GB.
Please try loading the MAT file in another system, and a new MAT file ~2.3 GB on the same system. This will help you determine if the issue is with the MAT file itself or the system settings. If other MAT files of similar size can be loaded, the original file might be corrupted.
Please refer to this MathWorks documentation on MATLAB's "matfile" function. It allows you to load MAT files larger than 2 GB directly from disk memory without loading all the variables into memory: https://www.mathworks.com/help/matlab/large-mat-files.html
I hope this is beneficial!

カテゴリ

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