Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A complete qsub for Matlab would look like this:
#!/bin/bash -l
#PBS -N myMatlab
#PBS -l ncpus=8
#PBS -l mem=32768mb
#PBS -j oe
#PBS -l walltime=05:00:00
#PBS -m ae
# The following line should ALWAYS be included
source /etc/profile.d/
module load matlab
matlab -nojvm -nodesktop -nosplash < program.m > program.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.