MATLAB
Loading MATLAB
module load matlab/r2019a
matlab
Or for newer versions:
module load matlab/r2023a
matlab
Running MATLAB on the Cluster
Interactive (via Open OnDemand)
Select Interactive Apps → MATLAB
Choose resources and launch
Batch Jobs
#!/bin/bash
#SBATCH --job-name=matlab_job
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --mem=32G
#SBATCH --time=4:00:00
module load matlab/r2023a
matlab -nodisplay -nosplash -r "run('myscript.m'); exit"
Parallel Computing
For parallel MATLAB jobs using the Distributed Compute Engine, see:
Tips
Use
-nodisplayfor batch jobsUse
-nosplashto skip the splash screenEnd scripts with
exitto ensure MATLAB terminatesRequest appropriate memory - MATLAB can be memory-intensive