MATLAB Usage

Last updated: June 24, 2024

Translated by Microsoft Copilot


MATLAB is a numerical computing environment developed by MathWorks. Initially, it was developed as an interface to matrix computation libraries such as LINPACK and EISPACK. It is now used in various fields.

MATLAB installed on Genkai is included in the MATLAB Campus-Wide License signed by Kyushu University.

Third-Party Access for Collaborative Research in Academia
allows all toolboxes to be used by members of academic research institutions outside the university as well (contract period: until December 2024).

※ The usage method introduced on this page is to start MATLAB installed on Genkai in a command line environment (CUI) or a graphics environment (GUI) via X Window. For the “MATLAB Campus-Wide License” to install MATLAB on your own PC, please refer to the following.
[2](3 (Limited to Kyushu University members)


Usage Environment

  • Node Group A, B, C, Login Node
Version Kyushu University Members Academic Research Institution Members Private Users
R2024a

How to Use

Environment Settings

$ module load matlab/R2024a


Starting MATLAB in a GUI Environment

Please log in to the X-Window environment.

If you are logging in using MobaXterm on Windows:
Click the “Settings” button (gear icon) of MobaXterm, click the “X11” tab, set “OpenGL acceleration” to “None”, and click “OK”. Then, if you are asked whether to restart the X11 server, click “Yes”.

$ LANG=C
$ ulimit -v 31457280
$ module load matlab/R2024a
$ matlab

Starting MATLAB in a CUI Environment

$ ulimit -v 31457280
$ module load matlab/R2024a
$ matlab -nodisplay

Batch Processing Script

For MATLAB programs that cannot be run in the CUI/GUI environment, execute them by batch processing.

#!/bin/bash
#PJM -L "rscgrp=a-batch"
#PJM -L "vnode=1"
#PJM -L "vnode-core=1"
#PJM -L "elapse=1:00:00"
#PJM -j
#PJM -S

LANG=C
module load matlab/R2024a
matlab -nodisplay < program.m

In the example, the MATLAB program program.m is requested to be processed in Node Group A.


References

Online Manual

MathWorks Inc. MATLAB