필터 지우기
필터 지우기

Out of Memory error for Linux MATLAB

조회 수: 5 (최근 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 CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by