Matlab Free Memory On Linuxmac


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

Matlab’s built-in “memory” command does not work on Linux or Mac. I have created a simple function to check available RAM with Matlab or GNU Octave I have created another function to check if an array of a particular size and data type can be created in RAM with Matlab or GNU Octave.

From Matlab R2015a, there in an option under Preferences > MATLAB > Workspace > Matlab array size limit that attempts to stop the user from creating arrays that dig into swap memory (extremely slow).

Matlab maximum array size limit slider
configure Matlab maximum array size limit as percent of RAM

Updated: