Check memory in script

Hi, I'm running large matrix operations in a for-loop on an old machine. Sometimes, I get an out-of-memory error. I think I can use to pack function to store what I have calculated, and run the rest with somewhat more memory. Is there a way to check for memory availability in a script, and act accordingly? It's a 32bit windows.
Thanks! Jaap

 채택된 답변

Friedrich
Friedrich 2011년 12월 8일

0 개 추천

Hi,
see here:
So you can use
feature memstats
or use the -memory on option for the MATLAB profiler:
profile –memory on

댓글 수: 1

Walter Roberson
Walter Roberson 2012년 1월 16일
(Note: feature memstats is only available on MS Windows)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

질문:

2011년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by