...
No Format |
---|
module load matlab/2024a
OR
module load matlab/2022b
OR
many older version like:
module load matlab/2018b
Other versions available:
matlab/2019b
matlab/2021a
To get a full listing of all versions available on the cluster, please type:
module avail matlab |
...
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' |
...