Out of Memory error for Linux MATLAB

6 ビュー (過去 30 日間)
Joe
Joe 2011 年 4 月 11 日
Hi everyone
I'm fairly new to MATLAB but I'd like to think I've progressed beyond an introductory user. However, I seem to be getting an unusual error scenario. The error is "Out of Memory" the unusual thing about it is that my computer claims to have the memory available, but I cant confirm this as Linux MATLAB doesn't give access to the memory function.
This error arises in a subroutine in my program and immediately before the subroutine I clear all variables aside from the two call variables and I get this error. If I run only the subroutine in the workspace with the two call variables I will not get the error.
This makes me think that there is some other kind of memory within MATLAB like function workspace memory that is causing the issue or some sort of fragmenting. There are no global or persistent variables declared so that is not the case.
does anyone have any ideas on what this could be or how to fix it? I could post the code but I prefer not to as it's a little over 4000 lines.
any help is greatly appreciated
  1 件のコメント
Oleg Komarov
Oleg Komarov 2011 年 4 月 12 日
try to execute then block by block...

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

採用された回答

the cyclist
the cyclist 2011 年 4 月 12 日
It's hard to give much guidance when you are not able to post code. Oleg's suggestion is a good one. It will help you narrow down exactly which part of your code is causing the memory issue. (It might not be the exact line that throws the error, which might just be the straw the breaks the camel's back.)
Also, here is a page from the Mathworks documentation that might be useful:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by