Skip to content

MATLAB

Submit MATLAB jobs to the SLURM scheduler, either running a script in batch mode or launching the interactive MATLAB GUI.

MATLAB submission
  • Partition — select the partition (e.g., hpc).
  • Job Name — assign a name (e.g., My_Test_Job).
  • CPUs per Task — number of CPU cores (e.g., 2).
  • Memory — memory per node (e.g., 4G).
  • Working Directory — where MATLAB runs and resolves script paths.
  • Version — select the MATLAB version (e.g., R2024a). Available versions are configured by your admin.
  • Launch MATLAB GUI — toggle between batch mode and GUI mode.

Batch mode (GUI off):

  • MATLAB Script — path to the .m script file (required). Use the Select button to browse for .m files in your working directory.
  • The job runs matlab -nodisplay -nodesktop -nosplash < script.m as a headless batch job.

GUI mode (GUI on):

  • No script file is needed. MATLAB desktop is launched via VNC.

Click Submit to send the job to the SLURM scheduler.

When using GUI mode:

  1. Once the job is running, navigate to the GUI Sessions page.
  2. Find your MATLAB session under GUI Jobs and click Connect.
  3. The MATLAB desktop opens in your browser through noVNC.

No local MATLAB installation is required. Computations run on the cluster using your allocated resources. You can access the session from any device with a browser. Close the browser tab and reconnect anytime — the MATLAB session persists until the job ends.