MATLAB¶
MATLAB (matrix laboratory) is a multi-paradigm numerical computing environment and proprietary programming language developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages. Although MATLAB is intended primarily for numerical computing, an optional toolbox uses the MuPAD symbolic engine allowing access to symbolic computing abilities. An additional package, Simulink, adds graphical multi-domain simulation and model-based design for dynamic and embedded systems.
Availability¶
| Software | Version | Dependent Toolchain | Module Load Command |
|---|---|---|---|
| MATLAB | 2024a | - | module load MATLAB/2024a |
| MATLAB | 2025a | - | module load MATLAB/2025a |
Application Information, Documentation¶
The documentation of MATLAB is available at MATLAB Tutorial.
Using MATLAB¶
Serial Job¶
Sample Batch Script to run MATLAB: matlab-serial.sh
Parallel Job¶
Single node parallelization¶
Sample Batch Script to run MATLAB: matlab_parallel.sh
cd('/path/to/for_loop.m') with the actual path of the matlab script. You don't need to use cd('/path/to/for_loop.m') if the Matlab script and job script are in the same directory. In that case, use matlab -nodisplay -nosplash -r 'for_loop; quit'
Sample Parallel MATLAB script: for_loop.m
Multi node parallelization¶
If you want to learn how to install a version of MATLAB on your local system and use it to run jobs on Wulver, please see Using Local MATLAB on Wulver