Updated 2020-04-07


Run Matlab Interactively On Cluster


  • Please see the VNC guide for instructions on how to set up the Interactive VNC session

Start Matlab on VNC

  • Open terminal in vnc window by clicking top left Applications > System Tools > scroll down to terminal
  • all commands here on will be typed in terminal in VNC
  • To see available versions of matlab run
module avail matlab
  • Load matlab module and start matlab
module load <version of matlab>  #example: module load matlab/r2017a


Set Up Parallel Environment Matlab

  • Goal is to start a parallel pool of matlab workers
  • will start automatically when functions such as parfor are run
  • read more about managing parallel pools here
Control the Parallel Pool from the Matlab Desktop
  • access pool preferences in the Home tab in the Environemnt section, go to Parallel > Parallel Preferences Screenshot
Programming Interface
  • to open a parallel pool based on your preference settings, use parpool
  • to open a pool of a specific size, use parpool(4)
  • to use a cluster other than your default and specify where the pool runs use parpool('MyCluster', 4)
  • these can be used in the command-line interface or when writing a Matlab script
  • more information about using parpool can be found here