Check memory in script

3 ビュー (過去 30 日間)
Jaap
Jaap 2011 年 12 月 8 日
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 日
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 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by