Skip to content

Matlab

Matlab (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages.

Directions for setting up a graphical interface can be found here.

Availability

Matlab is available for academic use only and may not be used for commercial applications at CCI.

Matlab is available on the following clusters:

  • NPL
  • ERP

Example

An example, single-node script (multi-threaded):

#!/bin/bash
#SBATCH --job-name=matlab-example
#SBATCH --output=slurm-%A.%a.out
#SBATCH --error=slurm-%A.%a.err
#SBATCH --nodes=1
#SBATCH --ntasks=1               
#SBATCH --time=01:00:00

module load matlab/2020a
srun matlab -nodisplay -nosplash -nodesktop -nojvm -r example

#Or "matlab -nodisplay -nosplash -nodesktop -nojvm < example.m"