...
No Format |
---|
module load matlab/2017a Older versions are: ==================== 2024a OR module load matlab/2015b2022b OR many older version like: module load matlab/2012b OR module load2018b Other versions available: matlab/2019b matlab/2011a2021a To get a full listing of all versions available on the cluster, please type: module avail matlab |
Matlab
...
2021a
Usage
No Format |
---|
module load matlab/2011a2021a module list Currently Loaded Modulefiles: 1) matlab/2011a Matlab will be loaded in the PATH. |
Install Directory
No Format |
---|
/sw/Matlab/2011a2021a |
Sample PBS script
cat power_plot.m
...
Create a file called "startup.m" with contents similar to the example below
No Format |
---|
addpath(genpath('/export/home/s12345/scratch/GIBBON-3.5.0')) |
Please have a look at: https://au.mathworks.com/help/matlab/ref/filesep.html
No Format |
---|
Create a path to the iofun folder on a Linux® platform.
iofun_dir = ['toolbox' filesep 'matlab' filesep 'iofun']
iofun_dir =
'toolbox/matlab/iofun' |
Another pbs script Usage Example
Open matlab (module load matlab/2021a;matlab) and do the following to add path:
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox')
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox/GIBBONS')
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox/GIBBONS/lib')
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox/GIBBONS/lib_ext')
addpath(genpath('/export/home/s2986149/sw/matlab/R2021a/toolbox'))
savepath /export/home/s2986149/sw/matlab/R2021a/toolbox/pathdef.m
From shell prompt, I do this:
cp /export/home/s123456/sw/matlab/R2021a/toolbox/pathdef.m /export/home/s123456/
Create a pbs script as follows:
No Format |
---|
#!/bin/bash
#PBS -m abe
#PBS -M email@griffith.edu.au
#PBS -N FEBio3_visco_ecoflex10
#PBS -q workq
#PBS -l select=1:ncpus=6:mem=10gb,walltime=300:00:00
echo 'This script is running on:'
hostname
echo 'The data is:'
date
echo $PBS_O_WORKDIR
module load misc/febio/3.6
#module load misc/baronsolver/20.4.14
module load anaconda3/2021.11
module load matlab/2021a
source activate myenv
pwd
module list
cd /export/home/s123456/FEA_scripts/Mat_Visco_Ecoflex10
pwd
# The command(s) to be executed:
cp ~/pathdef.m .
matlab -nodisplay -nosplash -nodesktop -r "run('/export/home/s2986149/FEA_scripts/Mat_Visco_Ecoflex10/C_inverse_FEA_uniaxial_viscoelastic.m');exit;"
echo 'Done' |