Borrar filtros
Borrar filtros

How to clear the memory occupied by matlab??

273 visualizaciones (últimos 30 días)
Bless
Bless el 6 de Feb. de 2013
Comentada: Matthew Creek el 24 de Ag. de 2023
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???

Respuesta aceptada

Jan
Jan el 6 de Feb. de 2013
Editada: Jan el 6 de Feb. de 2013
See pack.
More powerful:
!matlab &
exit
But when diskswapping was used intensively even restarting Matlab can leave the operating system in a state of a reduced responsiveness. Then use the most powerful FEX: WinPower:
WinPower('RebootMatlab', 'disp(''Hello again'')');
This restarts the computer...
  2 comentarios
Jorge Ignacio Cisneros Saldana
Jorge Ignacio Cisneros Saldana el 10 de Jun. de 2023
I have 64gb of RAM and still run out, there is no other way without turning off?

Iniciar sesión para comentar.

Más respuestas (2)

Sean de Wolski
Sean de Wolski el 6 de Feb. de 2013
See the memory management tips linked from the bottom of:
doc memory

Christian Schwermer
Christian Schwermer el 16 de Ag. de 2020
Hello,
MATLAB doesn't release memory, if you didn't declare the variable as output for the function.
best regards
  1 comentario
Eric Bodenchak
Eric Bodenchak el 30 de Abr. de 2022
what variable? for what function? Can you be more specific?

Iniciar sesión para comentar.

Categorías

Más información sobre Performance and Memory en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by