Matlab @cs.kuleuven.be

The department of Computer Science participates in the KULeuven Matlab licensing scheme. The local Matlab responsible is Ronald Cools.

This page is about using matlab on a departmental system group administered computer. More information about obtaining a license can be found elsewhere.

The First Time

The first time you start matlab on a machine, it takes a while to start. This is because a separate license daemon is installed and activated for you on/for that machine. This daemon is installed in your personal home directory and manages your (personal) matlab license on/for that machine.

If you use matlab on your laptop or desktop or if you have configured X-forwarding when working remote on a compute server, you will get a login window. You must login with your @kuleuven.be MathWorks account, which needs KU Leuven MFA authentication.

If you use matlab in CLI mode (e.g. when working on a remote compute server without X-forwarding), you must follow the suggested procedure to login.

Once logged in, you will see the usual matlab prompt or window.

Afterwards

In the top right of the matlab GUI window, you can logout - if you do so, you must login again the next time you start matlab, in the same way as you did the first time.

If you don't logout, but just stop matlab, you do not need to login when starting matlab again - you can start using it directly - at this moment it is not yet known how long this login will last - we expect it to time out after some time - time will show.

The login does survive a reboot of the machine - if the license daemon is not active anymore, it is restarted - this takes some extra time at start-up but not as much as the first time when it needed to be installed as well - your login is saved and activated again automatically.

The login of the GUI and the CLI versions of matlab are the same: logging in or out in one has effect in the other - which makes sense because there is only 1 license daemon for you on that particular machine.

Moreover the login of matlab is the same on machines that share the same home directory: logging in/out on one machine has effect on the other machines as well - which makes sense because your license is a personal one and not a dedicated machine one.

Departmental desktops and compute servers share the same home directory - a single login suffices for all of them - departmental laptops do not share home directories - it is yet unknown on how many laptops you can activate your license - but we don't think this will be a problem for most of us ;-)

Network

When logging in with your matlab license/account on a machine in GUI mode, an active network connection to the Internet is needed. It is yet unknown if you also need such network connection afterwards when using matlab without logging out - we expect you don't until your login-session expires.

It is also yet unknown if you need network connection when logging in in the CLI mode of matlab.

Versions

You can see which matlab versions are available on a (departmental system group administered) machine with the command:

  • ls -1 /usr/local/bin/matlab-*

You can see which version is the default one with:
  • ls -l /usr/local/bin/matlab