Difference between revisions of "Software:matlab"

From CAC Wiki
Jump to: navigation, search
 
Line 3: Line 3:
 
Previously, using MATLAB required a user-supplied license (and a lot of effort) to run on our systems. '''CAC now has an academic license for MATLAB provided by Queen's University'''. For a personal MATLAB license through Queen's University, see [http://www.queensu.ca/its/software/enterprise-licenced-software/matlab the ITS software page].
 
Previously, using MATLAB required a user-supplied license (and a lot of effort) to run on our systems. '''CAC now has an academic license for MATLAB provided by Queen's University'''. For a personal MATLAB license through Queen's University, see [http://www.queensu.ca/its/software/enterprise-licenced-software/matlab the ITS software page].
  
* '''Version''': R2017a
+
* '''Versions''': R2017a, R2018b, R2021a, R2023a, R2024b
 
* '''List of installed toolboxes and products''': [https://www.mathworks.com/academia/tah-portal/queens-university-products.html?s_tid=tah_po_list_queensu]
 
* '''List of installed toolboxes and products''': [https://www.mathworks.com/academia/tah-portal/queens-university-products.html?s_tid=tah_po_list_queensu]
 
* '''Statement''': [https://info.cac.queensu.ca/wiki/files/2017/05/cac-matlab-statement.pdf Necessary for accessing the software]
 
* '''Statement''': [https://info.cac.queensu.ca/wiki/files/2017/05/cac-matlab-statement.pdf Necessary for accessing the software]
Line 15: Line 15:
 
== Running MATLAB ==
 
== Running MATLAB ==
  
To load MATLAB, use the command <code>module load matlab</code>. If your SSH client supports X-forwarding (and you have logged in using X-forwarding using <code>ssh -X</code>), you can bring up the MATLAB user interface with the command <code>matlab</code>. Note that this may be very slow because our nodes don't have hardware support for the graphics, so that it has to be rendered by the CPU.
+
Note, Matlab is part of the Queen's University site license. User's must [[https://www.mathworks.com/mwaccount/register?uri=https%3A%2F%2Fwww.mathworks.com%2Flicensecenter%2Ftotal_headcount%2F10043-12328-05753-02778-80949&form_type=tah_portal|create a matlab account]]. When you first start Matlab, you'll be prompted to log into your matlab account, if this fails (times out e.g.), you can generate a one-time pass (OTP) code and use that. This should only happen the first time you start matlab.
 +
 
 +
To load MATLAB (e.g. version R2024b), use the command <code>module load matlab</R2024b>. If your SSH client supports X-forwarding (and you have logged in using X-forwarding using <code>ssh -X</code>), you can bring up the MATLAB user interface with the command <code>matlab</code>. Note that this may be very slow because our nodes don't have hardware support for the graphics, so that it has to be rendered by the CPU.
  
 
To run MATLAB without the GUI use the command <code>matlab -nodisplay</code>
 
To run MATLAB without the GUI use the command <code>matlab -nodisplay</code>
Line 42: Line 44:
 
== Toolboxes ==
 
== Toolboxes ==
  
The following toolboxes are installed / available for our MATLAB version.
+
The following toolboxes are installed / available for MATLAB version R2024b. This may vary older versions.
  
 
<pre>
 
<pre>
MATLAB                                                Version 9.2         (R2017a)
+
MATLAB                                                Version 24.2       (R2024b)
Simulink                                              Version 8.9        (R2017a)
+
Simulink                                              Version 24.2        (R2024b)
Bioinformatics Toolbox                                Version 4.8        (R2017a)
+
5G Toolbox                                            Version 24.2        (R2024b)
Communications System Toolbox                         Version 6.4        (R2017a)
+
AUTOSAR Blockset                                      Version 24.2        (R2024b)
Computer Vision System Toolbox                       Version 7.3        (R2017a)
+
Aerospace Blockset                                    Version 24.2        (R2024b)
Control System Toolbox                                Version 10.2        (R2017a)
+
Aerospace Toolbox                                    Version 24.2        (R2024b)
Curve Fitting Toolbox                                Version 3.5.5      (R2017a)
+
Antenna Toolbox                                      Version 24.2        (R2024b)
DSP System Toolbox                                    Version 9.4        (R2017a)
+
Audio Toolbox                                        Version 24.2        (R2024b)
Database Toolbox                                      Version 7.1        (R2017a)
+
Automated Driving Toolbox                            Version 24.2        (R2024b)
Econometrics Toolbox                                  Version 4.0        (R2017a)
+
Bioinformatics Toolbox                                Version 24.2        (R2024b)
Embedded Coder                                        Version 6.12       (R2017a)
+
Bluetooth Toolbox                                    Version 24.2        (R2024b)
Filter Design HDL Coder                              Version 3.1.1      (R2017a)
+
C2000 Microcontroller Blockset                        Version 24.2        (R2024b)
Financial Instruments Toolbox                        Version 2.5        (R2017a)
+
Communications Toolbox                               Version 24.2        (R2024b)
Financial Toolbox                                    Version 5.9        (R2017a)
+
Computer Vision Toolbox                               Version 24.2        (R2024b)
Fixed-Point Designer                                  Version 5.4        (R2017a)
+
Control System Toolbox                                Version 24.2        (R2024b)
Fuzzy Logic Toolbox                                  Version 2.2.25      (R2017a)
+
Curve Fitting Toolbox                                Version 24.2        (R2024b)
Global Optimization Toolbox                          Version 3.4.2       (R2017a)
+
DDS Blockset                                          Version 24.2        (R2024b)
HDL Coder                                            Version 3.10       (R2017a)
+
DSP HDL Toolbox                                      Version 24.2        (R2024b)
HDL Verifier                                          Version 5.2         (R2017a)
+
DSP System Toolbox                                    Version 24.2        (R2024b)
Image Acquisition Toolbox                            Version 5.2         (R2017a)
+
Database Toolbox                                      Version 24.2        (R2024b)
Image Processing Toolbox                              Version 10.0       (R2017a)
+
Datafeed Toolbox                                      Version 24.2        (R2024b)
Instrument Control Toolbox                            Version 3.11       (R2017a)
+
Deep Learning HDL Toolbox                            Version 24.2        (R2024b)
MATLAB Coder                                          Version 3.3        (R2017a)
+
Deep Learning Toolbox                                Version 24.2        (R2024b)
MATLAB Compiler                                      Version 6.4        (R2017a)
+
Econometrics Toolbox                                  Version 24.2        (R2024b)
MATLAB Compiler SDK                                  Version 6.3.1      (R2017a)
+
Embedded Coder                                        Version 24.2       (R2024b)
Mapping Toolbox                                      Version 4.5        (R2017a)
+
Filter Design HDL Coder                              Version 24.2        (R2024b)
Neural Network Toolbox                                Version 10.0       (R2017a)
+
Financial Instruments Toolbox                        Version 24.2        (R2024b)
Optimization Toolbox                                  Version 7.6        (R2017a)
+
Financial Toolbox                                    Version 24.2        (R2024b)
Parallel Computing Toolbox                            Version 6.10       (R2017a)
+
Fixed-Point Designer                                  Version 24.2        (R2024b)
Partial Differential Equation Toolbox                Version 2.4        (R2017a)
+
Fuzzy Logic Toolbox                                  Version 24.2       (R2024b)
RF Toolbox                                            Version 3.2         (R2017a)
+
GPU Coder                                            Version 24.2        (R2024b)
Robust Control Toolbox                                Version 6.3        (R2017a)
+
Global Optimization Toolbox                          Version 24.2       (R2024b)
Signal Processing Toolbox                            Version 7.4        (R2017a)
+
HDL Coder                                            Version 24.2       (R2024b)
SimEvents                                            Version 5.2         (R2017a)
+
HDL Verifier                                          Version 24.2       (R2024b)
Simscape                                              Version 4.2         (R2017a)
+
Image Acquisition Toolbox                            Version 24.2       (R2024b)
Simscape Multibody                                    Version 5.0        (R2017a)
+
Image Processing Toolbox                              Version 24.2       (R2024b)
Simulink 3D Animation                                Version 7.7        (R2017a)
+
Industrial Communication Toolbox                      Version 24.2        (R2024b)
Simulink Coder                                        Version 8.12       (R2017a)
+
Instrument Control Toolbox                            Version 24.2        (R2024b)
Simulink Control Design                              Version 4.5        (R2017a)
+
LTE Toolbox                                          Version 24.2        (R2024b)
Simulink Design Verifier                              Version 3.3        (R2017a)
+
Lidar Toolbox                                        Version 24.2       (R2024b)
Simulink Verification and Validation                  Version 3.13       (R2017a)
+
MATLAB Coder                                          Version 24.2        (R2024b)
Stateflow                                            Version 8.9        (R2017a)
+
MATLAB Compiler                                      Version 24.2        (R2024b)
Statistics and Machine Learning Toolbox              Version 11.1       (R2017a)
+
MATLAB Compiler SDK                                  Version 24.2        (R2024b)
Symbolic Math Toolbox                                Version 7.2         (R2017a)
+
MATLAB Report Generator                              Version 24.2        (R2024b)
System Identification Toolbox                        Version 9.6        (R2017a)
+
MATLAB Test                                          Version 24.2        (R2024b)
Wavelet Toolbox                                      Version 4.18       (R2017a)
+
Mapping Toolbox                                      Version 24.2        (R2024b)
 +
Medical Imaging Toolbox                               Version 24.2        (R2024b)
 +
Mixed-Signal Blockset                                Version 24.2        (R2024b)
 +
Model Predictive Control Toolbox                      Version 24.2        (R2024b)
 +
Model-Based Calibration Toolbox                      Version 24.2        (R2024b)
 +
Motor Control Blockset                               Version 24.2       (R2024b)
 +
Navigation Toolbox                                    Version 24.2        (R2024b)
 +
Optimization Toolbox                                  Version 24.2        (R2024b)
 +
Parallel Computing Toolbox                            Version 24.2       (R2024b)
 +
Partial Differential Equation Toolbox                Version 24.2       (R2024b)
 +
Phased Array System Toolbox                          Version 24.2        (R2024b)
 +
Powertrain Blockset                                  Version 24.2        (R2024b)
 +
Predictive Maintenance Toolbox                        Version 24.2        (R2024b)
 +
RF Blockset                                          Version 24.2        (R2024b)
 +
RF PCB Toolbox                                        Version 24.2        (R2024b)
 +
RF Toolbox                                            Version 24.2       (R2024b)
 +
ROS Toolbox                                          Version 24.2        (R2024b)
 +
Radar Toolbox                                        Version 24.2        (R2024b)
 +
Reinforcement Learning Toolbox                        Version 24.2        (R2024b)
 +
Requirements Toolbox                                  Version 24.2        (R2024b)
 +
Risk Management Toolbox                              Version 24.2        (R2024b)
 +
Robotics System Toolbox                              Version 24.2        (R2024b)
 +
Robust Control Toolbox                                Version 24.2        (R2024b)
 +
Satellite Communications Toolbox                      Version 24.2        (R2024b)
 +
Sensor Fusion and Tracking Toolbox                    Version 24.2        (R2024b)
 +
SerDes Toolbox                                        Version 24.2        (R2024b)
 +
Signal Integrity Toolbox                              Version 24.2        (R2024b)
 +
Signal Processing Toolbox                            Version 24.2        (R2024b)
 +
SimBiology                                            Version 24.2        (R2024b)
 +
SimEvents                                            Version 24.2       (R2024b)
 +
Simscape                                              Version 24.2       (R2024b)
 +
Simscape Battery                                      Version 24.2        (R2024b)
 +
Simscape Driveline                                    Version 24.2        (R2024b)
 +
Simscape Electrical                                  Version 24.2        (R2024b)
 +
Simscape Fluids                                      Version 24.2        (R2024b)
 +
Simscape Multibody                                    Version 24.2        (R2024b)
 +
Simulink 3D Animation                                Version 24.2        (R2024b)
 +
Simulink Check                                        Version 24.2        (R2024b)
 +
Simulink Code Inspector                              Version 24.2        (R2024b)
 +
Simulink Coder                                        Version 24.2       (R2024b)
 +
Simulink Compiler                                    Version 24.2        (R2024b)
 +
Simulink Control Design                              Version 24.2        (R2024b)
 +
Simulink Coverage                                    Version 24.2        (R2024b)
 +
Simulink Design Optimization                          Version 24.2        (R2024b)
 +
Simulink Design Verifier                              Version 24.2        (R2024b)
 +
Simulink Desktop Real-Time                            Version 24.2       (R2024b)
 +
Simulink Fault Analyzer                              Version 24.2        (R2024b)
 +
Simulink PLC Coder                                    Version 24.2        (R2024b)
 +
Simulink Real-Time                                    Version 24.2        (R2024b)
 +
Simulink Report Generator                            Version 24.2        (R2024b)
 +
Simulink Test                                        Version 24.2        (R2024b)
 +
SoC Blockset                                          Version 24.2        (R2024b)
 +
Stateflow                                            Version 24.2        (R2024b)
 +
Statistics and Machine Learning Toolbox              Version 24.2       (R2024b)
 +
Symbolic Math Toolbox                                Version 24.2       (R2024b)
 +
System Composer                                      Version 24.2        (R2024b)
 +
System Identification Toolbox                        Version 24.2        (R2024b)
 +
Text Analytics Toolbox                                Version 24.2        (R2024b)
 +
UAV Toolbox                                          Version 24.2        (R2024b)
 +
Vehicle Dynamics Blockset                            Version 24.2        (R2024b)
 +
Vehicle Network Toolbox                              Version 24.2        (R2024b)
 +
Vision HDL Toolbox                                    Version 24.2        (R2024b)
 +
WLAN Toolbox                                          Version 24.2        (R2024b)
 +
Wavelet Toolbox                                      Version 24.2        (R2024b)
 +
Wireless HDL Toolbox                                  Version 24.2        (R2024b)
 +
Wireless Testbench                                    Version 24.2       (R2024b)
 
</pre>
 
</pre>

Latest revision as of 14:19, 7 January 2025

MATLAB is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation. You can use MATLAB in a wide range of applications, including signal and image processing, communications, control design, test and measurement, financial modeling and analysis, and computational biology.

Previously, using MATLAB required a user-supplied license (and a lot of effort) to run on our systems. CAC now has an academic license for MATLAB provided by Queen's University. For a personal MATLAB license through Queen's University, see the ITS software page.

You can check for other installed versions of matlab by 
module spider matlab

Getting access

Send a signed MATLAB usage statement form to cac.admin@queensu.ca. This will add you to the matlab group that allows access to the software. To check if you have been authorized access, type groups while logged on to the system. If matlab appears in the output, you are ready to go!

Running MATLAB

Note, Matlab is part of the Queen's University site license. User's must [a matlab account]. When you first start Matlab, you'll be prompted to log into your matlab account, if this fails (times out e.g.), you can generate a one-time pass (OTP) code and use that. This should only happen the first time you start matlab.

To load MATLAB (e.g. version R2024b), use the command module load matlab</R2024b>. If your SSH client supports X-forwarding (and you have logged in using X-forwarding using <code>ssh -X), you can bring up the MATLAB user interface with the command matlab. Note that this may be very slow because our nodes don't have hardware support for the graphics, so that it has to be rendered by the CPU.

To run MATLAB without the GUI use the command matlab -nodisplay

Although MATLAB often used interactively, if you are running a production job, you need to submit it through the SLURM scheduler.

An example of a MATLAB job script is shown below:

#!/bin/bash
#SBATCH --job-name=MATLAB_test
#SBATCH --mail-type=ALL
#SBATCH --mail-user=myEmail@whatever.com
#SBATCH --output=STD.out
#SBATCH --error=STD.err
#SBATCH --time=30:00
#SBATCH --mem=1000
module load matlab
matlab -nodesktop < testsys.m

Note that a time limit and a memory limit have to be supplied (in the example above 30 minutes and 1000 MByte, respectively). If either is exceeded the job will stop. Standard output and standard error are re-directed to files (STD.out and STD.err, repsectively). Email notification when the job is scheduled and ends are sent to a specified email address. This script (let's call it matlab.sh) would thhen be submitted via

sbatch matlab.sh

Toolboxes

The following toolboxes are installed / available for MATLAB version R2024b. This may vary older versions.

MATLAB                                                Version 24.2        (R2024b)
Simulink                                              Version 24.2        (R2024b)
5G Toolbox                                            Version 24.2        (R2024b)
AUTOSAR Blockset                                      Version 24.2        (R2024b)
Aerospace Blockset                                    Version 24.2        (R2024b)
Aerospace Toolbox                                     Version 24.2        (R2024b)
Antenna Toolbox                                       Version 24.2        (R2024b)
Audio Toolbox                                         Version 24.2        (R2024b)
Automated Driving Toolbox                             Version 24.2        (R2024b)
Bioinformatics Toolbox                                Version 24.2        (R2024b)
Bluetooth Toolbox                                     Version 24.2        (R2024b)
C2000 Microcontroller Blockset                        Version 24.2        (R2024b)
Communications Toolbox                                Version 24.2        (R2024b)
Computer Vision Toolbox                               Version 24.2        (R2024b)
Control System Toolbox                                Version 24.2        (R2024b)
Curve Fitting Toolbox                                 Version 24.2        (R2024b)
DDS Blockset                                          Version 24.2        (R2024b)
DSP HDL Toolbox                                       Version 24.2        (R2024b)
DSP System Toolbox                                    Version 24.2        (R2024b)
Database Toolbox                                      Version 24.2        (R2024b)
Datafeed Toolbox                                      Version 24.2        (R2024b)
Deep Learning HDL Toolbox                             Version 24.2        (R2024b)
Deep Learning Toolbox                                 Version 24.2        (R2024b)
Econometrics Toolbox                                  Version 24.2        (R2024b)
Embedded Coder                                        Version 24.2        (R2024b)
Filter Design HDL Coder                               Version 24.2        (R2024b)
Financial Instruments Toolbox                         Version 24.2        (R2024b)
Financial Toolbox                                     Version 24.2        (R2024b)
Fixed-Point Designer                                  Version 24.2        (R2024b)
Fuzzy Logic Toolbox                                   Version 24.2        (R2024b)
GPU Coder                                             Version 24.2        (R2024b)
Global Optimization Toolbox                           Version 24.2        (R2024b)
HDL Coder                                             Version 24.2        (R2024b)
HDL Verifier                                          Version 24.2        (R2024b)
Image Acquisition Toolbox                             Version 24.2        (R2024b)
Image Processing Toolbox                              Version 24.2        (R2024b)
Industrial Communication Toolbox                      Version 24.2        (R2024b)
Instrument Control Toolbox                            Version 24.2        (R2024b)
LTE Toolbox                                           Version 24.2        (R2024b)
Lidar Toolbox                                         Version 24.2        (R2024b)
MATLAB Coder                                          Version 24.2        (R2024b)
MATLAB Compiler                                       Version 24.2        (R2024b)
MATLAB Compiler SDK                                   Version 24.2        (R2024b)
MATLAB Report Generator                               Version 24.2        (R2024b)
MATLAB Test                                           Version 24.2        (R2024b)
Mapping Toolbox                                       Version 24.2        (R2024b)
Medical Imaging Toolbox                               Version 24.2        (R2024b)
Mixed-Signal Blockset                                 Version 24.2        (R2024b)
Model Predictive Control Toolbox                      Version 24.2        (R2024b)
Model-Based Calibration Toolbox                       Version 24.2        (R2024b)
Motor Control Blockset                                Version 24.2        (R2024b)
Navigation Toolbox                                    Version 24.2        (R2024b)
Optimization Toolbox                                  Version 24.2        (R2024b)
Parallel Computing Toolbox                            Version 24.2        (R2024b)
Partial Differential Equation Toolbox                 Version 24.2        (R2024b)
Phased Array System Toolbox                           Version 24.2        (R2024b)
Powertrain Blockset                                   Version 24.2        (R2024b)
Predictive Maintenance Toolbox                        Version 24.2        (R2024b)
RF Blockset                                           Version 24.2        (R2024b)
RF PCB Toolbox                                        Version 24.2        (R2024b)
RF Toolbox                                            Version 24.2        (R2024b)
ROS Toolbox                                           Version 24.2        (R2024b)
Radar Toolbox                                         Version 24.2        (R2024b)
Reinforcement Learning Toolbox                        Version 24.2        (R2024b)
Requirements Toolbox                                  Version 24.2        (R2024b)
Risk Management Toolbox                               Version 24.2        (R2024b)
Robotics System Toolbox                               Version 24.2        (R2024b)
Robust Control Toolbox                                Version 24.2        (R2024b)
Satellite Communications Toolbox                      Version 24.2        (R2024b)
Sensor Fusion and Tracking Toolbox                    Version 24.2        (R2024b)
SerDes Toolbox                                        Version 24.2        (R2024b)
Signal Integrity Toolbox                              Version 24.2        (R2024b)
Signal Processing Toolbox                             Version 24.2        (R2024b)
SimBiology                                            Version 24.2        (R2024b)
SimEvents                                             Version 24.2        (R2024b)
Simscape                                              Version 24.2        (R2024b)
Simscape Battery                                      Version 24.2        (R2024b)
Simscape Driveline                                    Version 24.2        (R2024b)
Simscape Electrical                                   Version 24.2        (R2024b)
Simscape Fluids                                       Version 24.2        (R2024b)
Simscape Multibody                                    Version 24.2        (R2024b)
Simulink 3D Animation                                 Version 24.2        (R2024b)
Simulink Check                                        Version 24.2        (R2024b)
Simulink Code Inspector                               Version 24.2        (R2024b)
Simulink Coder                                        Version 24.2        (R2024b)
Simulink Compiler                                     Version 24.2        (R2024b)
Simulink Control Design                               Version 24.2        (R2024b)
Simulink Coverage                                     Version 24.2        (R2024b)
Simulink Design Optimization                          Version 24.2        (R2024b)
Simulink Design Verifier                              Version 24.2        (R2024b)
Simulink Desktop Real-Time                            Version 24.2        (R2024b)
Simulink Fault Analyzer                               Version 24.2        (R2024b)
Simulink PLC Coder                                    Version 24.2        (R2024b)
Simulink Real-Time                                    Version 24.2        (R2024b)
Simulink Report Generator                             Version 24.2        (R2024b)
Simulink Test                                         Version 24.2        (R2024b)
SoC Blockset                                          Version 24.2        (R2024b)
Stateflow                                             Version 24.2        (R2024b)
Statistics and Machine Learning Toolbox               Version 24.2        (R2024b)
Symbolic Math Toolbox                                 Version 24.2        (R2024b)
System Composer                                       Version 24.2        (R2024b)
System Identification Toolbox                         Version 24.2        (R2024b)
Text Analytics Toolbox                                Version 24.2        (R2024b)
UAV Toolbox                                           Version 24.2        (R2024b)
Vehicle Dynamics Blockset                             Version 24.2        (R2024b)
Vehicle Network Toolbox                               Version 24.2        (R2024b)
Vision HDL Toolbox                                    Version 24.2        (R2024b)
WLAN Toolbox                                          Version 24.2        (R2024b)
Wavelet Toolbox                                       Version 24.2        (R2024b)
Wireless HDL Toolbox                                  Version 24.2        (R2024b)
Wireless Testbench                                    Version 24.2        (R2024b)