Running MATLAB on the RCS compute service

The RCS compute service has a full MATLAB licence. There are are three ways to use it:

  1. The most familiar is the usual desktop interface. You’ll need to be running an X server and enable X11 forwarding over SSH, as described on our Using SSH page. Then you can run MATLAB via:

     module load matlab
     matlab
    

    This is not the most efficient or usable approach - it’s generally best to develop and test your code locally and deploy to the compute service when you’re ready to execute it at scale in batch mode.

  2. To execute your code in batch mode (i.e. non-interactively) you’ll need to write and submit a job script as demonstrated by this simple example.
  3. Our Jupyter server also supports MATLAB, in an environment that may be familiar to existing Python programmers. Simply create a notebook with the “Matlab” kernel.

Further resources