matlab

Electrical Engineering
Fluid Dynamics
Biomedical Imaging
Data Mining
Comprehensive Math
Numerical Libraries
Statistics
Image Processing

Software Description

Matlab is a high level technical computing language and interactive environment for data visualization, data analysis, numerical computation, and algorithm development.


Info

Module Name

matlab

Last Updated On

09/22/2023

Support Level

Primary Support

Software Access Level

Limited Licenses

Home Page

https://www.mathworks.com/products/matlab.html

Documentation

Software Description

Matlab is a high level technical computing language and interactive environment for data visualization, data analysis, numerical computation, and algorithm development.

Parallel Test Script

The following test script demonstrates how easily Matlab loops can be parallelized with \"parfor\". Basic benchmarking information is included and will vary with your choice of \"ppn=\". Note that \"cl.parpool()\" autodetects the number of workers based on the value of maxNumCompThreads() in your PBS script. Or you can override the value by passing it as the first argument (e.g., \"cl.parpool(4)\").

cl=parcluster('local')
pool = cl.parpool()

N=50000000

tic
for i = 1:N
 A(i) = rand(1,1);
end
serial_time=toc

tic
parfor i = 1:N
 A(i) = rand(1,1);
end
parallel_time=toc

speedup = serial_time / parallel_time 
efficiency = speedup / pool.NumWorkers

exit

Slurm Example

#!/bin/bash 
#SBATCH --job-name="rfm_RunMATLABTest_job"
#SBATCH --ntasks=1 
#SBATCH --ntasks-per-node=1 
#SBATCH --output=rfm_RunMATLABTest_job.out 
#SBATCH --error=rfm_RunMATLABTest_job.err 
#SBATCH --time=0:10:0 
#SBATCH -p small,large,ram256g,ram1t

module load matlab/R2019a 
wget https://public.s3.msi.umn.edu/reframe/sw/matlab/script.m 
matlab -nodisplay -nodesktop -nosplash -r "run('script.m'); exit;"

General Linux

To load this module for use in a Linux environment, you can run the command:

module load matlab

Depending on where you are working, there may be more than one version of matlab available. To see which modules are available for loading you can run:

module avail matlab

Agate Modules

Default

R2022b

Other Modules

R2022b, R2010b, R2011a, R2011b, R2012a, R2012b, R2013a, R2013b, R2014a, R2014b, R2015a, R2015b, R2016b, R2017b, R2019a, R2020a, R2021a, R2022a

Mangi Modules

Default

R2022b

Other Modules

R2022b, R2010b, R2011a, R2011b, R2012a, R2012b, R2013a, R2013b, R2014a, R2014b, R2015a, R2015b, R2016b, R2017b, R2019a, R2020a, R2021a, R2022a

Mesabi Modules

Default

R2022b

Other Modules

R2022b, R2010b, R2011a, R2011b, R2012a, R2012b, R2013a, R2013b, R2014a, R2014b, R2015a, R2015b, R2016b, R2017b, R2019a, R2020a, R2021a, R2022a