Running Matlab
Matlab is available on SuperCloud. You do not need to load a module to run the matlab
command.
Supported MATLAB® versions
To see the versions that are currently supported you can type "matlab" at the command prompt and then press the "tab" button 2 times. This will initiate tab complete, showing you the different Matlab commands available. Run ls -l /usr/local/bin/matlab
to see the default.
You can also use this command to see all versions of Matlab:
The output will look something like this:
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab -> /state/partition1/llgrid/pkg/matlabr2020a/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab-lite -> /state/partition1/llgrid/pkg/matlabr2020a-lite/bin/matlab*
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab2019b -> /state/partition1/llgrid/pkg/matlabr2019b/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab2019b-lite -> /state/partition1/llgrid/pkg/matlabr2019b-lite/bin/matlab*
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab2020a -> /state/partition1/llgrid/pkg/matlabr2020a/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab2020a-lite -> /state/partition1/llgrid/pkg/matlabr2020a-lite/bin/matlab*
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab2020b -> /state/partition1/llgrid/pkg/matlabr2020b/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab2020b-lite -> /state/partition1/llgrid/pkg/matlabr2020b-lite/bin/matlab*
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab2021a -> /state/partition1/llgrid/pkg/matlabr2021a/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab2021a-lite -> /state/partition1/llgrid/pkg/matlabr2021a-lite/bin/matlab*
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab2021b -> /state/partition1/llgrid/pkg/matlabr2021b/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab2021b-lite -> /state/partition1/llgrid/pkg/matlabr2021b-lite/bin/matlab*
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab2022a -> /state/partition1/llgrid/pkg/matlabr2022a/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab2022a-lite -> /state/partition1/llgrid/pkg/matlabr2022a-lite/bin/matlab*
lrwxrwxrwx 1 root root 52 Jun 5 00:40 /usr/local/bin/matlab2022b -> /state/partition1/llgrid/pkg/matlabr2022b/bin/matlab*
lrwxrwxrwx 1 root root 57 Jun 5 00:40 /usr/local/bin/matlab2022b-lite -> /state/partition1/llgrid/pkg/matlabr2022b-lite/bin/matlab*
The MATLAB® executable name is to the left of the ->
in the output. The
associated MATLAB® version appears to the right of the ->
.
Running MATLAB® interactively from an ssh session
Please do not run your code on the login nodes. You can find
instructions on how to submit your job to run on the compute nodes on
the below. If you would like
to run MATLAB® interactively on a SuperCloud system, you should request an
interactive session on a compute node by using the
LLsub
command. If you want to specify the node that you want to use, include the -p <partition>
option
with the command.
Once you are on the compute node, this is how you launch the default version of MATLAB®:
To launch a version other than the default version:
where matlab<#>
is one of the MATLAB® executable names. For example,
matlab2022a
refers to MATLAB® 2022a.
Running MATLAB in a Batch Job
To run a Matlab script as a batch job use a job submission script like this:
Where myscript.m
is the name of your Matlab script. Note that in thematlab
command in matlab_job.sh
we leave off the .m
file extension. You can then submit this job to the scheduler using either the LLsub
or sbatch
command.
It is likely you will need more resources than a single core. See the Submitting Jobs page for more information on how to submit batch jobs and request resources.
MATLAB® Lite
MATLAB® Lite is MATLAB® without any toolboxes installed. This will help make the MATLAB® launch faster. A light version is available for each version of MATLAB® supported by the SuperCloud.
Installed MATLAB® Toolboxes
To see a list of the installed MATLAB® toolboxes, launch MATLAB® and use
the ver
command at the MATLAB® command prompt:
The output will look something like this:
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.3.0.713579 (R2017b)
MATLAB License Number: 241630
Operating System: Linux 4.4.109_grsec_llgrid_10ms #1 SMP Thu Jan 25 13:26:10 EST 2018 x86_64
Java Version: Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.3 (R2017b)
Simulink Version 9.0 (R2017b)
Aerospace Blockset Version 3.20 (R2017b)
Aerospace Toolbox Version 2.20 (R2017b)
Antenna Toolbox Version 3.0 (R2017b)
Audio System Toolbox Version 1.3 (R2017b)
Automated Driving System Toolbox Version 1.1 (R2017b)
Bioinformatics Toolbox Version 4.9 (R2017b)
Communications System Toolbox Version 6.5 (R2017b)
Computer Vision System Toolbox Version 8.0 (R2017b)
Control System Toolbox Version 10.3 (R2017b)
Curve Fitting Toolbox Version 3.5.6 (R2017b)
DSP System Toolbox Version 9.5 (R2017b)
Database Toolbox Version 8.0 (R2017b)
Datafeed Toolbox Version 5.6 (R2017b)
Econometrics Toolbox Version 4.1 (R2017b)
Embedded Coder Version 6.13 (R2017b)
Financial Instruments Toolbox Version 2.6 (R2017b)
Financial Toolbox Version 5.10 (R2017b)
Fixed-Point Designer Version 6.0 (R2017b)
Fuzzy Logic Toolbox Version 2.3 (R2017b)
GPU Coder Version 1.0 (R2017b)
Global Optimization Toolbox Version 3.4.3 (R2017b)
HDL Coder Version 3.11 (R2017b)
HDL Verifier Version 5.3 (R2017b)
Image Acquisition Toolbox Version 5.3 (R2017b)
Image Processing Toolbox Version 10.1 (R2017b)
Instrument Control Toolbox Version 3.12 (R2017b)
LTE HDL Toolbox Version 1.0 (R2017b)
LTE System Toolbox Version 2.5 (R2017b)
MATLAB Coder Version 3.4 (R2017b)
MATLAB Compiler Version 6.5 (R2017b)
MATLAB Compiler SDK Version 6.4 (R2017b)
MATLAB Distributed Computing Server Version 6.11 (R2017b)
MATLAB Report Generator Version 5.3 (R2017b)
Mapping Toolbox Version 4.5.1 (R2017b)
Model Predictive Control Toolbox Version 6.0 (R2017b)
Neural Network Toolbox Version 11.0 (R2017b)
Optimization Toolbox Version 8.0 (R2017b)
Parallel Computing Toolbox Version 6.11 (R2017b)
Partial Differential Equation Toolbox Version 2.5 (R2017b)
Phased Array System Toolbox Version 3.5 (R2017b)
Polyspace Bug Finder Version 2.4 (R2017b)
Polyspace Code Prover Version 9.8 (R2017b)
Powertrain Blockset Version 1.2 (R2017b)
RF Blockset Version 6.1 (R2017b)
RF Toolbox Version 3.3 (R2017b)
Risk Management Toolbox Version 1.2 (R2017b)
Robotics System Toolbox Version 1.5 (R2017b)
Robust Control Toolbox Version 6.4 (R2017b)
Signal Processing Toolbox Version 7.5 (R2017b)
SimBiology Version 5.7 (R2017b)
SimEvents Version 5.3 (R2017b)
Simscape Version 4.3 (R2017b)
Simscape Driveline Version 2.13 (R2017b)
Simscape Electronics Version 2.12 (R2017b)
Simscape Fluids Version 2.3 (R2017b)
Simscape Multibody Version 5.1 (R2017b)
Simscape Power Systems Version 6.8 (R2017b)
Simulink 3D Animation Version 7.8 (R2017b)
Simulink Check Version 4.0 (R2017b)
Simulink Code Inspector Version 3.1 (R2017b)
Simulink Coder Version 8.13 (R2017b)
Simulink Control Design Version 5.0 (R2017b)
Simulink Coverage Version 4.0 (R2017b)
Simulink Design Optimization Version 3.3 (R2017b)
Simulink Report Generator Version 5.3 (R2017b)
Simulink Requirements Version 1.0 (R2017b)
Simulink Test Version 2.3 (R2017b)
Stateflow Version 9.0 (R2017b)
Statistics and Machine Learning Toolbox Version 11.2 (R2017b)
Symbolic Math Toolbox Version 8.0 (R2017b)
System Identification Toolbox Version 9.7 (R2017b)
Text Analytics Toolbox Version 1.0 (R2017b)
Tracking and Sensor Fusion Toolbox Version 1.0 (R2017b)
Trading Toolbox Version 3.3 (R2017b)
Vision HDL Toolbox Version 1.5 (R2017b)
WLAN System Toolbox Version 1.4 (R2017b)
Wavelet Toolbox Version 4.19 (R2017b)
>>