Reduce Memory Usage
Identify memory usage and apply techniques to use memory more
efficiently
MATLAB® handles data storage for you automatically. However, if memory is an issue, there are several techniques you can apply to reduce requirements.
Functions
Topics
- How MATLAB Allocates Memory
Write more memory-efficient code by understanding how MATLAB allocates memory.
- Strategies for Efficient Use of Memory
Reduce memory usage in your programs, use appropriate data storage, avoid fragmenting memory, and reclaim used memory.
- Avoid Unnecessary Copies of Data
MATLAB can apply memory optimizations when passing function inputs by value.
- Resolve “Out of Memory” Errors
Troubleshoot errors when MATLAB cannot allocate the requested memory.