📅  最后修改于: 2022-03-11 14:50:36.847000             🧑  作者: Mango
# Download the installer via https://www.mathworks.com/downloads/web_downloads (You can possibly get a free version by registering with the email adress of your university)
# Unzip the installer file using this command: (or right click -> extract here)
unzip -X -K matlab_R2020a_glnxa64.zip -d matlab_2020a_installer
# Open the matalab_2020a_installer folder and open a terminal
# use your terminal as root using the following command : (required to let MATLAB write in usr directory)
sudo su
# type your password then :
sudo ./install
# Be sure to create a symbolic link, so you can start it using "matlab -desktop", if you forgot this, you can create it manually by doing "sudo ln -s /usr/local/MATLAB/R2020a/bin/matlab /usr/local/bin/matlab"
# Now the MATLAB Installer is on, sign in, follow the steps and choose the product that you need
# src: https://www.mathworks.com/matlabcentral/answers/518584-how-do-i-install-on-ubuntu
# Add a desktop entry
sudo wget -qO /usr/share/icons/matlab.png goo.gl/NDyi9t
sudo wget -qO /usr/share/applications/matlab.desktop goo.gl/NaHXrn
# src: https://linuxconfig.org/how-to-install-matlab-on-ubuntu-18-04-bionic-beaver-linux
# Note: if no symbolic link was made, you can start matlab by doing
cd /usr/local/MATLAB/R2020a/bin
# And from here running
./matlab
# If this gives a license error, you should do
./activate_matlab.sh