Skip to content

MATLAB

MATLAB® (short for MATrix LABoratory) is a powerful programming platform and high-level language specifically designed for numerical computing, data analysis, visualization, and algorithm development. Developed by MathWorks, it has become a de-facto standard tool in engineering, science, finance, and many applied research fields.

MATLAB treats everything as matrices and arrays. This makes linear algebra, statistics, signal processing, and scientific calculations feel natural — almost like writing mathematics on paper.


Key Features:

  • Matrix & Array-Centric Language:
    • The most natural way to express computational mathematics
  • Extensive mathematical & domain-specific function libraries:
    • Built-in functions and Add-on toolboxes almost covered any engineering/scientific field
  • Visualization:
    • Publication-quality plots with very little code

Use Case:

  • Numerical Analysis
  • Signal & Image Processing
  • Data Analysis
  • Robotics & Control Systems
  • and more…

Run MATLAB CLI on Login Node (For Debug and Small Scale Testing Only)

Section titled “Run MATLAB CLI on Login Node (For Debug and Small Scale Testing Only)”

To run MATLAB CLI on Login Node, run below command in the SSH terminal (CLI), please refer to SSH Shell Access to EdUHK HPC Platform and Cluster (Web-based Shell Access)


# Load MATLAB Module
$ module load matlab
# Start MATLAB CLI
$ matlab -nodisplay
>>> <MATLAB Command>

Run MATLAB by HPC Job Submission (For General Computational Process)

Section titled “Run MATLAB by HPC Job Submission (For General Computational Process)”

To run large scale MATLAB Computational tasks, HPC job submission is required for allocating HPC back-end computing resources. Please refer to Job Example for MATLAB for a practical reference.


Example source code path → /home/$USER/job_template/matlab/matlab_test.m


disp('Hello World');
A = randn(3)
tic
expm(A)
sin(A).^2 + cos(A).^2
toc
disp('Done, bye.');

For more information about MATLAB, please refer to MATLAB Official Site