Using MATLAB in NeCTAR -- A quick start guide
Please note that any Node that you wish to run MATLAB from will need to meet the first of the following prerequisites. The NCI Node, principally the Tenjin NeCTAR Partner Cloud, has met these requirements. NCI has included the MATLAB software on the VDI images within Tenjin. Each researcher, either individually, or as part of an institutional account will need to meet the second
An agreement with MathWorks that allows users to use their own license on your infrastructure.
A MathWorks account with a MATLAB licence associated (to download and install MATLAB).
Download the MATLAB installer to your local machine from the MathWorks site and get the file installation key for your licence.
Create an instance in the usual. It's probably best to use a flavour with at least a few cores and decent memory as MATLAB can be a hog.
If your code is mainly written for a single core, select m2.small or m2.medium
If your code will utilise more cores, and / or memory, then select m2.large or one of the optimised m2 range.
- Copy the MATLAB installer to the instance:
scp matlab\_R2015b.iso ec2-user@ipaddr
- SSH into the instance:
- Install build tools:
sudo yum groupinstall "Development Tools"\
- Install needed X11 libraries:
sudo yum install xauth libXrender libXtst\
- Mount MATLAB ISO:
mkdir MATLAB && sudo mount -o loop matlab\_R2015b.iso MATLAB\
- Install MATLAB:
cd MATLAB && sudo ./install -mode silent -agreeToLicense yes -fileInstallationKey ...
- Log out:
- Log back in with X-forwading enabled:
ssh -X ec2-user@<ipaddr>\
- Launch MATLAB:
/usr/local/MATLAB/R2015b/bin/matlab -licmode online