Matlab on Linux
Installing Matlab
Prerequisites
Install a compiler:
sudo apt-get install -y mingw-w64
Get a license.
Install MatLab
Download from Mathworks website
Create a folder “matlab”:
mkdir matlabUnzip the archive into the newly created folder:
unzip -q matlab_R2021b_glnxa64.zip -d matlabCreate Installation folder:
sudo mkdir -p /usr/local/MATLAB/R2021b/Change directory to unziped archive and change user privileges for root:
xhost +SI:localuser:rootExecute install:
sudo ./install
Create shortcut launcher and icon
$ sudo wget -qO /usr/share/icons/matlab.png http://bit.ly/2SUSFo3
$ sudo wget -qO /usr/share/applications/matlab.desktop http://bit.ly/2vcomAf
Update the MatLab version reflected in “matlab.desktop” text file:
$ sudo nano /usr/share/applications/matlab.desktop