Matlab using up computer memory
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2023-1-3
编辑:Walter Roberson
2023-1-3
see https://apps.apple.com/us/app/disk-space-analyzer-inspector/id446243721?mt=12 or https://en.m.wikipedia.org/wiki/Disk_Inventory_X or similar programs to analyze where your disk is being used.
回答(2 个)
FRANCESCO PIO
2023-1-3
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.
0 个评论
Image Analyst
2023-1-3
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!