Out of Memory error for Linux MATLAB
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Performance and Memory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!