Error using load Out of memory. Type HELP MEMORY for your options.

19 次查看(过去 30 天)
I cannot load a variable (info.mat) file with size 973 MB. It shows
Error using load
Out of memory. Type HELP MEMORY for your options.
Can Anyone suggest what to do?
Help is greaty appriciated.
  1 个评论
Walter Roberson
Walter Roberson 2019-4-10
It is possible to get into that situation in some cases:
  • file was built on a system with more memory and involves very heavy compression (for example an array that is nearly all zero would compress well)
  • file is corrupt
  • file was built incrementally, using -append to write one variable at a time, but you are trying to load back the entire file
  • variables were built incrementally using matfile() and a -v7.3 file, which can sometimes permit you to create a variable in a file that is larger than your available memory
  • certain cases involving symbolic expressions can end up expanding representation
  • If you accidentally saved a figure handle as part of data, then loading the figure could take a lot of memory

请先登录,再进行评论。

采纳的回答

David Wilson
David Wilson 2019-4-10
Did you do as suggested and actually check your memory?
>> memory
Maximum possible array: 2745 MB (2.878e+09 bytes) *
Memory available for all arrays: 2745 MB (2.878e+09 bytes) *
Memory used by MATLAB: 2578 MB (2.703e+09 bytes)
Physical Memory (RAM): 8097 MB (8.490e+09 bytes)
* Limited by System Memory (physical + swap file) available.
  2 个评论
tiankai hang
tiankai hang 2020-2-18
Sorry, my .mat file is 634MB, and my memory is listed below, but I still got the same arror. Do you know how to deal with the problem? Best wishes~
可能的最大数组: 20467 MB (2.146e+10 bytes) *
可用于所有数组的内存: 20467 MB (2.146e+10 bytes) *
MATLAB 使用的内存: 2915 MB (3.056e+09 bytes)
物理内存(RAM): 16317 MB (1.711e+10 bytes)
Sachindra Dhanapala Arachchige
I also got the same error 'Out of memory. Type HELP MEMORY for your options.'. I closed all the other opened applications. It increaed the RAM availabe to Matlab. Then I ran the matlab code again. This time it ran smoothly. The dataset that i tried to load was about 605Mb.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by