MATLAB "Out of memory" problem
显示 更早的评论
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.
采纳的回答
更多回答(5 个)
Oleg Komarov
2011-3-8
0 个投票
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 个评论
REN
2011-3-8
Oleg Komarov
2011-3-8
The next answer would be, what are you trying to calculate? Maybe we can help and pinpoint the appropriate numerical method.
REN
2011-3-8
REN
2011-3-8
REN
2011-3-8
Walter Roberson
2011-3-8
What will you do with the large collection of transition probabilities after you create it?
REN
2011-3-8
Jiro Doke
2011-3-8
0 个投票
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 个评论
mladen
2014-1-3
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
2011-8-15
0 个投票
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 个评论
Walter Roberson
2011-8-15
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
2014-1-10
0 个投票
I managed to solve the problem by installing 64-bit Windows 8.1 and 64-bit Matlab 2013b.
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!