Matlab using up computer memory

I am working with large datasets in Matlab 2022a, on MacOS Monterey 12.2.1.
Each time I run Matlab, my memory goes down, even though I haven't added anything else to my computer. It's now down from ~ 150 GB to ~ 40 GB, and I can no longer run my code in Matlab, as the memory goes down as I try to load the large variable, until Matlab crashes.
It seems like maybe, that memory in my computer has been used each time I run Matlab, and that there is memory that hasn't been freed when quitting the application? How can I check/resolve this?
Thanks,
Louise

4 Kommentare

Walter Roberson
Walter Roberson am 3 Jan. 2023
Are you talking about RAM or disk space? Or are you using an Air that combines the two?
Louise Wilson
Louise Wilson am 3 Jan. 2023
Yes sorry, using a Macbook air.
Walter Roberson
Walter Roberson am 3 Jan. 2023
Bearbeitet: Walter Roberson am 3 Jan. 2023
Louise Wilson
Louise Wilson am 3 Jan. 2023
Thanks!

Melden Sie sich an, um zu kommentieren.

Antworten (2)

FRANCESCO PIO
FRANCESCO PIO am 3 Jan. 2023

0 Stimmen

Did you try to move all your script in another folder?
in this case matlab will not load all of your (past) programs that maybe you don't need anymore.
Image Analyst
Image Analyst am 3 Jan. 2023

0 Stimmen

Are your MATLAB programs writing out any data that you don't really need it to? For example are you processing video frames but you're saving each frame out to disk? So maybe you have some temproary files that you can delete because you don't need them anymore.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Tags

Gefragt:

am 3 Jan. 2023

Beantwortet:

am 3 Jan. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by