Updated 2019-09-23

matlab_distributed_pbs.md

#PBS -l nodes=1
#PBS -l walltime=1:00:00
#PBS -q <your queue>
#PBS -j oe
#PBS -o matlab.output.$PBS_JOBID

cd $PBS_O_WORKDIR
module purge
module load matlab/r2018b
# module load zlib/1.2.8 #(load only on RHEL6) 

NPROCS=32 #you can specify a number which is less than NumWorkers in cluster profile

(time $EXE -nodisplay -singleCompThread -r "myParallelAlgorithmFcn($NPROCS);exit") 2>&1 |tee -a time.output