Effacer les filtres
Effacer les filtres

Check memory in script

2 vues (au cours des 30 derniers jours)
Jaap
Jaap le 8 Déc 2011
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

Réponse acceptée

Friedrich
Friedrich le 8 Déc 2011
Hi,
see here:
So you can use
feature memstats
or use the -memory on option for the MATLAB profiler:
profile –memory on
  1 commentaire
Walter Roberson
Walter Roberson le 16 Jan 2012
(Note: feature memstats is only available on MS Windows)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by