MATLAB 2021b

There is a newer install of 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.

Accessing MATLAB 2021b

To load the module for MATLAB 2021b please use this command on the BEAR systems (BlueBEAR and BEAR Cloud VMs):

📋 module load MATLAB/2021b

BEAR Apps Version

2020b

Architectures

EL8-cascadelakeEL8-icelakeEL8-sapphirerapids

The listed architectures consist of two part: OS-CPU. The OS used is represented by EL and there are several different processor (CPU) types available on BlueBEAR. More information about the processor types on BlueBEAR is available on the BlueBEAR Job Submission page.

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. Before starting MATLAB you should create a per-job temporary directory to use - so that the parallel pool temporary files do not conflict with other jobs.

More Information

For more information visit the MATLAB website.

Dependencies

This version of MATLAB has a direct dependency on: alsa-lib/1.2.5.1 Java/1.8

Required By

This version of MATLAB is a direct dependent of: Cantera/2.5.1-MATLAB-2021b

Other Versions

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

Version BEAR Apps Version
2023b-r6 2022b
2022a 2021a
2022a 2021b
2020a 2019b
2019b 2019a

Last modified on 6th October 2021