=============== Matlab on Linux =============== Installing Matlab ================= .. Tip:: https://linuxconfig.org/how-to-install-matlab-on-ubuntu-20-04-focal-fossa-linux Prerequisites ------------- Install a compiler: .. code-block:: none sudo apt-get install -y mingw-w64 Get a license. Install MatLab -------------- * Download from Mathworks website * Create a folder "matlab": ``mkdir matlab`` * Unzip the archive into the newly created folder: ``unzip -q matlab_R2021b_glnxa64.zip -d matlab`` * Create Installation folder: ``sudo mkdir -p /usr/local/MATLAB/R2021b/`` * Change directory to unziped archive and change user privileges for root: ``xhost +SI:localuser:root`` * Execute install: ``sudo ./install`` Create shortcut launcher and icon --------------------------------- .. code-block:: none $ 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: .. code-block:: none $ sudo nano /usr/share/applications/matlab.desktop