Install Matlab on Linux

This procedure works for Matlab-compatible Linux systems including Ubuntu and RHEL.

Extract all files from the Matlab installer archive, and run (without sudo)

./install

Install Matlab under the user home directory since Matlab is tied to the Linux username anyway. The user may have problems updating Matlab or installing Add-On Toolboxes if Matlab is installed outside the user home directory. Install Symbolic Links to “/home/username/.local/bin/” when asked by the GUI.

Add to file ~/.profile or similar:

export PATH=$PATH:$HOME/.local/bin

Optional: Add links in desktop menu


Matlab can be started from Terminal:

matlab

It’s best to run non-interactive Matlab jobs (including CI) like

matlab -batch myscript

NOTE: A GUI is required for normal install

If installing Matlab remotely over SSH, use VNC (easier) or Silent install

If “click here” isn’t working for individual site license, try dragging the “click here” to the web browser address bar.


terminate called after throwing an instance of ‘std::runtime_error’ what(): Unable to launch the MATLABWindow application

try renaming libcrypto.so.1.1 under the Matlab install folder “/bin/glnxa64/” and ./install again.

reference