Minnesota Supercomputing Institute
R2023b
R2022b, R2023b, R2010b, R2011a, R2011b, R2012a, R2012b, R2013a, R2013b, R2014a, R2014b, R2015a, R2015b, R2016b, R2017b, R2019a, R2020a, R2021a, R2022a
Thursday, April 11, 2024
Matlab is a high level technical computing language and interactive environment for data visualization, data analysis, numerical computation, and algorithm development.
To run this software interactively in a Linux environment run the commands:
module load matlab matlab
Several versions of Matlab are available, but the versions may be different on different platforms.To list all versions of Matlab available on the machine, type
module avail matlab
When running on the elmob nodes use this module instead:
module load matlab/R2010b matlab
#!/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;"
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