#!/bin/bash #SBATCH -J matlab_example # job name, don't use spaces #SBATCH -c 1 # number of cores, 1 #SBATCH --mail-type=END,FAIL # email status changes # load env for matlab module load mathworks/matlab_r2017a # run your command matlab -nodesktop -nosplash -nodisplay < matlab_example.m