Effacer les filtres
Effacer les filtres

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

18 vues (au cours des 30 derniers jours)
Megha
Megha le 10 Avr 2019
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 commentaire
Walter Roberson
Walter Roberson le 10 Avr 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

Connectez-vous pour commenter.

Réponse acceptée

David Wilson
David Wilson le 10 Avr 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 commentaires
tiankai hang
tiankai hang le 18 Fév 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
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by