May 31st & June 1st are university holidays.
Next monthly maintenance June 7th 7am-11am - [Details]
Annual MGHPCC Power Shutdown Aug 9-12 [Details and Schedule]
STATUS PAGE No known issues.

Search Docs by Keyword



Research Computing has licensed MATLAB from Mathworks for use on desktops, laptops, and on the FASRC cluster. If you wish to run MATLAB on your desktop/laptop, please follow the instructions on the FAS downloads page (downloads for all platforms are available from Mathworks). Running MATLAB on the cluster can be done through a GUI using VDI, at the command line interactive, or through batch jobs.
NOTE! These instructions discuss the single-core (process) implementation. If you wish to run MATLAB as a multi-core/process job, please see our companion document.

MATLAB GUI on the cluster

The MATLAB GUI can be run using the power of the compute nodes of the cluster by initiating your session via our graphical login, and starting an interactive MATLAB session. This is almost like running MATLAB on your desktop/laptop, except all the computation is done on the cluster.

  1. Log on to the cluster via  Be sure to ask for the resources you need to do your work.  For more details on VDI go here.
  2. Load and run the MATLAB software module load matlab/2018b-fasrc01.  Then just run matlab.

MATLAB at the terminal command line

MATLAB can also be run at the command line in an interactive terminal session. Since there is no GUI, you must include additional parameters, and you can optionally specify an M file (e.g. script.m or function.m) to run, including any script or function parameters as required:

      1. Open a terminal and log into the cluster as described here.
      2. Once logged in, get an interactive session as described here.
        srun --pty --mem 4000 -t 30 -p test /bin/bash
      3. Load the appropriate software:
        module load matlab
      4. Run MATLAB using the appropriate command and parameters:
        matlab -nojvm -nosplash -nodesktop
        and MATLAB should run interactively at your terminal:
        < M A T L A B (R) >
        Copyright 1984-2014 The MathWorks, Inc.
        R2014a ( 64-bit (glnxa64)
        February 11, 2014
        To get started, type one of these: helpwin, helpdesk, or demo.
        For product information, visit
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Need help?
© The President and Fellows of Harvard College
Except where otherwise noted, this content is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.