Contact Advanced Research Computing
Quick Links
MATLAB Jobs
In order to run MATLAB on Monsoon, some specific job parameters are recommended. An example job script for running a non-interactive/non-gui MATLAB file would look like:
#!/bin/bash
#SBATCH --job-name=myjob1 # name of your job within Monsoon
#SBATCH --chdir=/scratch/NAUID # your work directory
#SBATCH --output=/scratch/NAUID/output.txt # target for text output/errors
#SBATCH --time=20:00 # 20 min (max run time)
#SBATCH --mem=2000 # 2000 megabytes (max available mem)
module load matlab
srun matlab -nodisplay -nodesktop -r "run /scratch/NAUID/myjob1.m"