title: ‘Matlab: platform independent free memory’ excerpt: You can get free memory on any platform from Matlab and GNU Octave with this script. categories: matlab tags: gnu-octave —
memory() command does not work on Linux or Mac.
- simple function to check available RAM with Matlab or GNU Octave
- function to check if an array of a particular size and data type can be created in RAM with Matlab or GNU Octave.
For Matlab ≥ R2015a, the option
Preferences > MATLAB > Workspace > Matlab array size limit attempts to stop the user from creating arrays that dig into swap memory (extremely slow).