MATLAB

MATLAB Tutorial

Documentation

Latest Features

Tutorials on Parallel and GPU Computing with MATLAB

Running Matlab on HPC from University of Maryland, Baltimore County

 

current version is R2014b on athena

Make sure your .cshrc has: set path = ($path /bin /usr/sbin /usr/bsd /sbin /usr/bin /usr/bin/X11 . /usr/local/bin)

 

Interactively run MATLAB on X-windows to know what data and commands are going to go into your script file.

cronus 101% qsub -q stdin -V -I -l select=1:ncpus=2:athena=True
And then at the compute node prompt:
compute-7-26 101% matlab
compute-7-26 102% exit


Then create a PBS script to submit to the batch system.

Replace Y where Y is the number of cores requested and is greater than 1

#!/bin/csh
#PBS -q para -l select=1:ncpus=
Y:athena=True:mpiprocs=Y
setenv MYDIR "/user/jmatrow/matlab"
# Do work on local scratch drive
setenv TMPDIR "/temp/jmatrow/$PBS_JOBNAME.$PBS_JOBID"
mkdir $TMPDIR
cp $MYDIR/*.m $TMPDIR
cd $TMPDIR
matlab -nodisplay -nojvm -nosplash -r intro
cp * $MYDIR
cd $MYDIR

rm -rf $TMPDIR