MATLAB "Out of memory" problem
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I want to create a large matrix, for example:
zeros(65536, 65536)
Matlab responds:
??? Error using ==> zeros
Out of memory. Type HELP MEMORY for your options.
How can I increase memory for Matlab use? I am on linux machine.
0 commentaires
Réponse acceptée
Andreas Goser
le 8 Mar 2011
Besides looking at increasing the memory use and decreasing the memory used, please always ask yourself the question "do I really need this amount of data to solve my scientific question?"
3 commentaires
Andreas Goser
le 8 Mar 2011
I corrected my type - "do I really need this amount of data to solve my scientific question?" The point is that I observe often users that generate much more data than they need. E.g. what is the point of measuring room temperatures with 1000 Hz? But some people do and then ask what the shall do with GBytes of unneccessary data. No implication to you appplication but a thought for many users.
Plus de réponses (5)
Oleg Komarov
le 8 Mar 2011
You should REALLY consider what you're doing: 65536*65536 * 8 bytes = 32 gigabytes
I worked on server with more than 32 gb, but it really doesn't make sense to create such a huge matrix, often the calculations can be done avoiding such ways.
Oleg
7 commentaires
Walter Roberson
le 8 Mar 2011
What will you do with the large collection of transition probabilities after you create it?
Jiro Doke
le 8 Mar 2011
Read through the links in Andreas's answer. And I agree with Andreas and Oleg about the question of "why you need such a big matrix", but a solution would be (assuming you definitely need what you are asking for) to get a 64-bit OS with a lot of RAM and 64-bit MATLAB.
1 commentaire
mladen
le 3 Jan 2014
I have got 64-bit Windows 7, 64-bit MATLAB R2013a and 16 GB of RAM. If that dose not cut it what does? This problem is really annoying, and prohibits me from doing my work with neural networks. I have looked everywhere I know of, and NOTHING. Up to this point I think the problem lies in the OS and the way it handles memory requests.
Md. Ali Hossain
le 15 Août 2011
yap I really need such a large array for my kernel PCA analysis. My array size is K(21025,21025), How can I solve it
1 commentaire
Walter Roberson
le 15 Août 2011
If your task cannot be dealt with using sparse matrices, then as Jiro suggests, you need "a 64-bit OS with a lot of RAM and 64-bit MATLAB"
mladen
le 10 Jan 2014
I managed to solve the problem by installing 64-bit Windows 8.1 and 64-bit Matlab 2013b.
0 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing 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!