MATLAB "Out of memory" problem

5 ビュー (過去 30 日間)
REN
REN 2011 年 3 月 8 日
回答済み: mladen 2014 年 1 月 10 日
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.

採用された回答

Andreas Goser
Andreas Goser 2011 年 3 月 8 日
Try the key Technical Notes 1106 and 1107 for that.
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 件のコメント
Andreas Goser
Andreas Goser 2011 年 3 月 8 日
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.
REN
REN 2011 年 3 月 9 日
Yeah, I should have done more smarter I'd accept your answer, for thanks...
And if I still can not figure out how in 2-3 days, I will start another post to ask how to represent large transition matrix of Graph in random walk'.

サインインしてコメントする。

その他の回答 (5 件)

REN
REN 2011 年 3 月 8 日
and commands:
memory
??? Error using ==> memory
Function MEMORY is not available on this platform.
feature('memstats')
??? Error using ==> feature
An unknown feature was specified
They don't work for me.
  1 件のコメント
Andreas Goser
Andreas Goser 2011 年 3 月 8 日
MEMORY is not available for Linux

サインインしてコメントする。


Oleg Komarov
Oleg Komarov 2011 年 3 月 8 日
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 件のコメント
Walter Roberson
Walter Roberson 2011 年 3 月 8 日
What will you do with the large collection of transition probabilities after you create it?
REN
REN 2011 年 3 月 8 日
to calculate P^(m)(is the transition matrix of another Graph G(2)) in smooth graph: in page 2-3 of this paper:
http://people.cs.uchicago.edu/~zhouxy/pakdd06.pdf

サインインしてコメントする。


Jiro Doke
Jiro Doke 2011 年 3 月 8 日
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
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
Md. Ali Hossain 2011 年 8 月 15 日
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
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
mladen 2014 年 1 月 10 日
I managed to solve the problem by installing 64-bit Windows 8.1 and 64-bit Matlab 2013b.

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by