MATLAB is a computing environment and programming language developed by MathWorks. It offers matrix manipulations, plotting of functions and data and more. This article will provide the reader with step by step instructions on how to install Matlab on Ubuntu 20.04 Focal Fossa Linux.
In this tutorial you will learn:
- How to download MATLAB
- How to unzip MATLAB installation package
- How to install MATLAB
- How to create MATLAB launcher shortcut
- How to run MATLAB
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | Installed or upgraded Ubuntu 20.04 Focal Fossa |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions |
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
How to install MATLAB on Ubuntu 20.04 step by step instructions
-
- Next step is to unzip the downloaded MATLAB package. To do so execute the following command from within your
Downloads
directory. Update the package name where appropriate:$ mkdir matlab $ unzip -q matlab_R2019b_glnxa64.zip -d matlab
- Now we are ready to begin the MATLAB installation. First, create an installation destination directory
/usr/local/MATLAB/R2019b/
:$ sudo mkdir -p /usr/local/MATLAB/R2019b/
Next, navigate to the the
matlab
directory and begin the installation by execution of the following commands:$ cd matlab $ sudo ./install
-
-
-
-
-
-
-
-
-
-
-
-
-
- Now, we will create a shortcut launcher for an easy Matlab application start. While still in the terminal execute the following Linux commands:
$ sudo wget -qO /usr/share/icons/matlab.png http://bit.ly/2SUSFo3 $ sudo wget -qO /usr/share/applications/matlab.desktop http://bit.ly/2vcomAf
Optionally, use a text editor and edit
/usr/share/applications/matlab.desktop
to reflect your Matlab version number.$ sudo nano /usr/share/applications/matlab.desktop
-
-
-
- All that remains, is to remove the Matlab’s installation file and the temporary directory:
$ rm ~/Downloads/matlab_R2019b_glnxa64.zip $ rm -fr ~/Downloads/matlab
Enjoy!