MATLAB

MATLAB is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C++, and Fortran.

Running MATLAB on BlueBEAR Login Nodes

Attempts to run Matlab on a login node will lead to a licensing error, probably including one of these messages:

  • License checkout failed.
    License Manager Error -38
    The user/host has been excluded from MATLAB in the options file on the license server.
    Contact your License Administrator to review the Options File.
  • License checkout failed.
    License Manager Error -96
    Unable to connect to the license server.
    Make sure that the client machine can communicate with the hostname listed in the SERVER line of the license file, and that the port listed in the SERVER line is not blocked by a firewall.

MATLAB Toolboxes

MATLAB on BEAR includes a suite of toolboxes provided by MathWorks.

The full list of installed toolboxes can be accessed by running the following command from within MATLAB:

ver

Parallel MATLAB Jobs

To start a parallel pool of workers with the resources requested on a node use: pc = parcluster('local')
pc.JobStorageLocation = getenv('TMPDIR')
parpool(pc, str2num(getenv('SLURM_TASKS_PER_NODE')))

This sets up a MATLAB parallel pool of the size of the cores available and sets the job information location to a temporary directory, to stop multiple job from conflicting with each other.

More Information

For more information visit the MATLAB website.

Available Versions

These versions of MATLAB are available on the BEAR systems (BlueBEAR, BEARCloud VMs, and CaStLeS VMs). These will be retained in accordance with our Applications Support and Retention Policy.

Version BEAR Apps Version
2021b 2020b
2020a 2019b
2019b 2019a