MATLAB® is the high-level language and interactive environment used by millions of engineers and scientists worldwide. It lets you explore and visualize ideas and collaborate across disciplines including signal and image processing, communications, control systems, and computational finance. At DESY it's usually pre-installed on linux-boxes, and installable on windows via Netinstall. In all other cases we offer Downloads which can be deployed manually on the computing hosts.

Information

  • Sourcehttp://www.mathworks.com/

  • License: commercial
  • Code: Fortran, C/C++
  • Path:  /opt/matlab/<version>  
  • Licensing: concurrent
  • License server: zitlic02.desy.de only accessible from within the DESY network

Using MATLAB (linux)

Usually MATLAB can be invoked directly as a versioned command

[me@pal ~]$ /usr/local/bin/matlab_R2022a   # or simply
[me@pal ~]$ matlab_R2022a                  # as /usr/local/bin will usually be in the PATH.

There is however no unversioned command "matlab". To always use the most recent available version 

[me@pal ~]$ module load matlab            # to use the newest version
[me@pal ~]$ module load matlab/R2022a     # to use a specific version
[me@pal ~]$ matlab

Running MATLAB

MATLAB comes with extensive documentation and demos. Other resources like community forums can be found on the MathWorks site

Please note: access to license servers is only possible from within the DESY network. The same is (more or less) true if you are using the license serves of the University of Hamburg or the Max-Planck Society. To access the MATLAB license server you should connect via VPN. Some VPN connection do not allow certain broadcasts. If the license server is unreachable despite a working VPN connection, change the MATLAB license file to:

SERVER zitlic02.desy.de 021169072116 27001
USE_SERVER

The license file can usually be found under <matlab-installation-path>/licenses/. You can also place a license file at any location and define a variable MLM_LICENSE_FILE pointing to that file.

If a VPN-connection is not an option it might be possible to use MATLAB from outside DESY via an ssh-tunnel. 

We can not offer any standalone or home-use licenses.

Another concern: please close MATLAB after you've done with your calculations! It will otherwise block the license and any toolbox-license used during a MATLAB-session. In particular toolbox-licenses will be blocked for the entire session, not only for the duration of the toolbox-usage.

Installing MATLAB manually

The installation procedure is very similar for Linux, Mac OSX and Windows. All information needed can be found under Matlab Downloads & Licenses. The folder is only accessible with a DESY username and password.There you can also found a detailed installation description for Linux. A detailed capture of the installation for Mac OSX can be found under Matlab Installation for Mac OSX

Please note: IF you are a member of the Max-Planck Institutes or the University of Hamburg you must choose the proper license server!

Installing MATLAB on Linux

If MATLAB is not installed on a Linux-host, you can install MATLAB via standard package tools. MATLAB comes in two variants, either as a full, local installation or by just creating links to AFS-hosted installations. To install the AFS-version:

[me@rhel ~]$ sudo yum install matlab.R2022a-alias matlab.R2022a-afs                   # RedHat EL based systems
[me@rhel ~]$ sudo yum install matlab.R2022a-alias matlab.R2022a                       # For local installations if repos are configured accordingly
[me@ubun ~]$ sudo apt-get install matlab.r2022a-afsu  matlab.r2022a-aliasu dl-optafs  # Ubuntu Debian
 
If repositories are not configured, packages can also be found in afs:
 
[me@ubun ~]$ cd /afs/desy.de/packages/RPMS/System/Ubuntu/22/x86_64/afsware/
[me@ubun ~]$ sudo dpkgi -i  matlab.r2022a-afsu_2022a-2_all.deb matlab.r2022a-aliasu_2022a-2_all.deb dl-optafs_1.0-2_amd64.deb	 
 

Installing MATLAB on Windows

Provided your PC is a member of the DESY windows domain, use the Netinstall Installer & Uninstaller, MATLAB can be found under "Scientific Software". Be aware that the MATLAB installation can easily take 30 minutes or more. So even if the installation shows nothing than a blue screen and no progress-bar, let the installation continue until it's really done. You can still use your PC during the installation, just swap the application in focus with "CTRL-ALT-TAB". 

If the PC is not part of the windows domain, please refer to the manual installation.