Software:matlab

From CAC Wiki
Revision as of 14:19, 7 January 2025 by Mhanlan (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)