Out of Memory error for Linux MATLAB

4 Ansichten (letzte 30 Tage)
Joe
Joe am 11 Apr. 2011
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

Akzeptierte Antwort

the cyclist
the cyclist am 12 Apr. 2011
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:

Weitere Antworten (0)

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by