How to clear the memory occupied by matlab??
Afficher commentaires plus anciens
I'm working in matlab GUI and it occupies more memory and cause out-of-memory error. Even if I clear all the variables by clearvars, the memory remains
>> memory
Maximum possible array: 11 MB (1.112e+007 bytes) *
Memory available for all arrays: 267 MB (2.799e+008 bytes) **
Memory used by MATLAB: 1477 MB (1.548e+009 bytes)
Physical Memory (RAM): 2766 MB (2.900e+009 bytes)
Could anyone help me how to flush out the memory used by MATLAB???
Réponse acceptée
Plus de réponses (2)
Sean de Wolski
le 6 Fév 2013
See the memory management tips linked from the bottom of:
doc memory
Christian Schwermer
le 16 Août 2020
0 votes
Hello,
MATLAB doesn't release memory, if you didn't declare the variable as output for the function.
best regards
1 commentaire
Eric Bodenchak
le 30 Avr 2022
what variable? for what function? Can you be more specific?
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!