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
π How to install MATLAB on Ubuntu 20.04 Focal Fossa Linux
How to install MATLAB on Ubuntu 20.04 Focal Fossa Linux
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
-
π download the latest MATLAB installation package
Head over to the the official Matlab website and download the latest MATLAB installation package. - Next step is to unzip the downloaded MATLAB package. To do so execute the following command from within your
Downloadsdirectory. 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
matlabdirectory and begin the installation by execution of the following commands:$ cd matlab $ sudo ./install
-
π Select which installation method
Select which installation method you wish to perform. If you do not haveFile installation KeychooseLog in. -
-
π Create MathWorks account or provide your existing Login credentials
Create MathWorks account or provide your existing Login credentials -
-
π destination of our Matlab install
If you followed this guide from the beginning, leave the default path as the one that has been created for the destination of our Matlab install. That is/usr/local/MATLAB/R2019b/ -
-
π destination directory
SelectCreate symbolic links to MATLAB scripts. Unless you know what you are doing, leave the default/usr/local/bindestination directory -
-
π Matlab installation in progress. Nothing to do. Sit back and wait.
Matlab installation in progress. Nothing to do. Sit back and wait. -
-
-
π Pressing the Next button will activate your Matlab installation
Pressing theNextbutton will activate your Matlab installation -
- 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.desktopto reflect your Matlab version number.$ sudo nano /usr/share/applications/matlab.desktop
-
π Start Matlab
Search your Activities menu for thematlabkeyword. Start Matlab by clicking on its icon -
-
π All done. Matlab installation on Ubuntu 20.04 is completed.
All done. Matlab installation on Ubuntu 20.04 is completed. - 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!
π MATLAB installation package
Once ready the MATLAB installation package should be located within you
Downloads directory.