wiki:Workshops/HowToRunMatlab2025October

Version 2 (modified by fuji, 25 hours ago) ( diff )

HPC Workshop Fall 2025

How to run Matlab on Cypress

What is MATLAB?

MATLAB (Matrix Laboratory) is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages.

Tulane’s expanded MathWorks license includes access to MATLAB, Simulink, and 48 toolboxes for both on-campus and at-home software installations. For more information about MATLAB and to learn how to download and use the products, please view the article in our Knowledge Base.

How to run a MATLAB code on Cypress

  • Running Matlab interactively using idev
    [fuji@cypress01-063 ~]$ matlab -nodisplay -nosplash
    MATLAB is selecting SOFTWARE OPENGL rendering.
    
                                                                                             < M A T L A B (R) >
                                                                                   Copyright 1984-2015 The MathWorks, Inc.
                                                                                   R2015a (8.5.0.197613) 64-bit (glnxa64)
                                                                                              February 12, 2015
    
    
    To get started, type one of these: helpwin, helpdesk, or demo.
    For product information, visit www.mathworks.com.
    
    
            Academic License
    
    >>
    
  • Running Matlab jobs using SLURM scripts
    #!/bin/bash
    #SBATCH --qos=normal            # Quality of Service
    #SBATCH --job-name=matlab     # Job Name
    #SBATCH --time=24:00:00         # WallTime
    #SBATCH --nodes=1               # Number of Nodes
    #SBATCH --ntasks-per-node=1     # Number of tasks (MPI processes)
    #SBATCH --cpus-per-task=1       # Number of threads per task (OMP threads)
    
    module load matlab
    matlab -nodesktop -nodisplay -nosplash < mymatlabprog.m
    
  • Parallel Matlab

https://docs.google.com/drawings/d/e/2PACX-1vTo_5IOHBbnAZbhvUUoEFcX3AMtZ8wC1GZXmdlfl-pFk-AQGW_V0SjXX8QojF6OmAeizyMMNslFQSyL/pub

Note: See TracWiki for help on using the wiki.