#!/bin/bash -l #$ -P InsertProjectNameHere #$ -l h_rt=12:00:00 # Specify the hard time limit for the job #$ -N Simple # Give job a name #$ -j y # Merge the error and output streams into a single file module load matlab/2021a # Two examples of how you might call MATLAB in batch mode... # 1) for a script... matlab -nodesktop -nodisplay -batch simple # or 2) for a function. #matlab -nodesktop -nodisplay -batch "simpleFunc(3,4)"