The RCS compute service has a full MATLAB licence. There are are three ways to use it:
-
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.
- 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.
- 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
- The Research Computing Service’s Support pages
- The College’s Research Software Directory lists some MATLAB projects developed at Imperial