clearing memory during function runing
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, im runing a function that uses a lot of memory and sometimes the function stops because there is not enough memory. is it possible to clear variables during running in order to free some memory?
thank you
0 commentaires
Réponses (2)
Walter Roberson
le 20 Nov 2013
You can clear variables in the current function's workspace, or in the base workspace, or global variables.
4 commentaires
Laurent
le 20 Nov 2013
But PACK cannot be used from within a function, so it will not solve memory problems during running of the function.
Walter Roberson
le 20 Nov 2013
Correct. But sometimes it makes sense to "checkpoint" your current state, return back up some levels, clean up memory, and then restart from the checkpoint.
Voir également
Catégories
En savoir plus sur Whos dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!