Matlab

From radwiki
Revision as of 11:57, 26 May 2020 by Jurgen (talk | contribs) (Created page with "== Guide to using MATLAB == {{Note|MATLAB '''2020a''' is currently available systemwide on `cpu1`, but users need to generate their license file first.|warn}} The main obstacl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Guide to using MATLAB

MATLAB 2020a is currently available systemwide on cpu1, but users need to generate their license file first.

The main obstacle is that the HKU MATLAB licenses are on a per-user per-computer basis, so each user needs to provide an appropriate license file to be able to run the executable. This license.lic file can be generated from the Mathworks website after logging in with your HKU credentials, the name in the license must match your GPU cluster (linux) account ID. The host ID for cpu1 is E4434B84092F.

Click "Activate a Computer" to create your license file after logging into https://www.mathworks.com/licensecenter.

An alternative way (untested) to generate the license file is to connect to a VNC session and run the MATLAB activation script.

On the commandline (headless mode)

Just use matlab on the commandline to start the interactive console. See the MATLAB documentation for more options.

GUI version

Run MATLAB in a VNC or X11 session. The GUI may look a little different compared to Windows.

  1. Example (Xserver): Connect a PuTTy tunnel to cpu1 with X11 forwarding, run matlab on the commandline, then use Xming on your Windows client to view the MATLAB interface.
  1. Example (VNC): Connect a PuTTy tunnel with port forwarding your to your vncserver port, then use TightVNC viewer to view the remote desktop, run MATLAB by typing matlab in a terminal or doubleclicking the link in your home folder.

See also

HKU MATLAB for installation notes