Check memory in script

2 次查看(过去 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 CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by