Matlab¶
Summary
Source: http://www.mathworks.com/
License: commercial product. licensed for academic use only
Path: /opt/matlab/<version>
Module: matlab
Licensing: concurrent
License server: zitlic02.desy.de. Only accessible from within the DESY network.
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.
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
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.
Other resources¶
Troubleshooting¶
libstdc++ errors under Linux¶
errors like
/libstdc++.so.6: version `GLIBCXX_3.4.29' not found
indicate that the library shipped with Matlab is too old for the specific OS. Use e.g.
LD_PRELOAD=/usr/lib64/libstdc++.so.6:$LD_PRELOAD matlab
in that case.