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

15 visualizaciones (últimos 30 días)
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 comentario
Walter Roberson
Walter Roberson el 10 de Abr. de 2019
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

Iniciar sesión para comentar.

Respuesta aceptada

David Wilson
David Wilson el 10 de Abr. de 2019
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 comentarios
tiankai hang
tiankai hang el 18 de Feb. de 2020
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
Sachindra Dhanapala Arachchige el 19 de Ag. de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by