MATLAB

MATLAB is a platform for solving engineering, mathematical, and graphical problems. To find out more, visit the MATLAB website.

License Information

Academic users

Academic users need a link to a MATLAB license server for their university (UiB, UiT, UiO or NTNU). Users from other universities can also use MATLAB on Fram. Send an email to support@nris.no and ask for the link for your university and the license name to use when submitting jobs. Add this link to the environment variable MLM_LICENSE_FILE:

export MLM_LICENSE_FILE=<link-to-matlab-license-server>

Add this environment variable setting into your ~/.bashrc. When submitting a job with, e.g., sbatch, use sbatch --licenses=<license-name>.

Third-Party Access for Collaborative Research in Academia

See this link (external page).

Commercial users

Commercial users need to sign a Hosting Provider agreement. Contact: contact@sigma2.no

Running MATLAB

Module

Version

MATLAB

2017a

MATLAB

2018a

MATLAB

2018b

MATLAB

2019a

MATLAB

2020b

MATLAB

2021a

MATLAB

2021b

MATLAB

2022b

MATLAB

2023a

To see available versions when logged into Fram issue command

module spider matlab

To use MATLAB type

module load MATLAB/<version>
# (eg. module load MATLAB/2021a)

specifying one of the available versions.

Sample MATLAB Job Script

#!/bin/bash
#SBATCH --account=nnNNNNk
#SBATCH --job-name=jobname
#SBATCH --time=1-0:0:0
#SBATCH --nodes=1

## Recommended safety settings:
set -o errexit # Make bash exit on any error
set -o nounset # Treat unset variables as errors

module restore system
module load MATLAB/<version>

matlab -nodisplay -nodesktop -nojvm -r "myprogram"

## Note: if you are using the Parallel Computing Toolbox, remove -nojvm

MPI for Matlab

MPI for Matlab is installed on Fram/Saga/Betzy (for parallelizing on many compute nodes). The following guides can help you get started: