Why do I get 'Out of Memory' errors in MATLAB?

12 views (last 30 days)
I would like to know how an Operating System manages memory, how to set the swap space for my Operating System, and how I can avoid 'Out of Memory' errors in MATLAB.
I would also like to know how to defragment the MATLAB workspace memory.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Mar 2021
Edited: MathWorks Support Team on 21 Dec 2020
Refer to Memory Usage information located at the following URL:
Specifically to the sections:
1. Strategies for Efficient Use of Memory
2. Resolving "Out of Memory" Errors
Concepts:
1. Memory Allocation
2. Memory Management Functions
Some additional resources for resolving "Out of Memory" errors:

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!