I have Matlab scripts that I developed on my own laptop. How do I run these scripts on Wahab HPC?
In your SLURM batch script, first load the matlab sotware:
module load matlab
Specific version can be given (e.g. matlab/R2019a
, matlab/R2019b
, matlab/R2020a
; see module list
for the actual versions installed).
Then run your script (e.g. my_matlab_script.m
):
matlab -nodisplay -nodesktop -r my_matlab_script
No .m
extension should be given; it is assumed.