How to clear the memory consumed by MATLAB Process after some simulations?

15 vues (au cours des 30 derniers jours)
Jayendra Kanipakam
Jayendra Kanipakam le 4 Août 2015
Commenté : Jayendra Kanipakam le 17 Août 2015
When I start the MATLAB, the size consumed by the process is 385 Mb. After i run 200 Simulations, memory consumed by the MATLAB process is 10 Gb.
So I want to clear the simulation data periodically because I save the simulation data to hard disk. clear all does not help. Let me know how to recover the data consumed by the matlab process.

Réponses (1)

Walter Roberson
Walter Roberson le 4 Août 2015
pack() is the routine to use. Note that it can only be done when you are at the command line, and it will clean everything out of memory.
  2 commentaires
Jayendra Kanipakam
Jayendra Kanipakam le 5 Août 2015
PACK is a command that saves all variables on disk, clears the memory, and then reloads the variables.
But I do not want reload of variables. It is clearing the RAM and again due to reload of variables the size is increasing
Jayendra Kanipakam
Jayendra Kanipakam le 17 Août 2015
clear functions; This does the job

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown 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