How-to run MATLAB

This article gives a 3 simple examples showing how to run MATLAB on Talapas.

Versions

We have several versions available, to view run, module available matlab

Talapas Desktop

  1. Access Open OnDemand,

  2. In the top ribbon, select the ‘Interactive Apps' dropdown menu. Choose ‘Talapas Desktop'.

  3. Enter account and job resource information. Once an allocation is granted, click 'Launch noVNC in New Tab'.

  4. In the top ribbon of the Talapas Desktop, select Applications, Education, MATLAB. This will launch the MATLAB R2018b GUI.

Interactive

  1. ssh onto a talapas login node,

  2. Start an interactive job,

  3. Once on the allocated node enter,

$ module load matlab $ matlab

Batch

For longer running non-interactive use cases call matlab in batch. Create the file matlab-job.srun. In the file, add the desired slurm declarations, load the matlab module, call the application.

#!/bin/bash #SBATCH --account=<pirg-name> #SBATCH --job-name=matlab-job #SBATCH --output=matlab-job.out #SBATCH --error=matlab-job.err module load matlab matlab -nodisplay < matlab-file.m

Submit the job

Use the sbatch command to submit the job.

$ sbatch matlab-job.srun



Filter by label

There are no items with the selected labels at this time.