Objective

This article will provide reader with step by step instructions on how to install Matlab on Ubuntu 18.04 Bionic Beaver Linux.

Operating System and Software Versions

  • Operating System: - Ubuntu 18.04 Bionic Beaver Linux
  • Software: - MATLAB R2018a or higher

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

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

Preparations

Before you begin please note that this guide assumes that you have already downloaded the Matlab installation package for the Linux operating system and save it into the ~/Downloads directory.

Open up terminal and confirm that matlab_R20XXa_glnxa64.zip is located within your ~/Downloads directory:
$ ls ~/Downloads/
matlab_R2018a_glnxa64.zip
Next, create a destination /usr/local/MATLAB/R2018a/ directory for the Matlab installation.
$ sudo mkdir -p /usr/local/MATLAB/R2018a/
Now you are ready to unzip the Matlab installation package.

SUBSCRIBE TO NEWSLETTER
Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


Unzip Matlab

Navigate to your ~/Downloads directory and create a new temporary matlab directory to store the content of the matlab_R20XXa_glnxa64.zip file:
$ cd Downloads
$ mkdir matlab
While still in the ~/Downloads directory use the unzip command to extract the content of the matlab_R20XXa_glnxa64.zip file into the previously created ~/Downloads/matlab directory:
$ unzip -q matlab_R2018a_glnxa64.zip -d matlab 
The content of the matlab_R20XXa_glnxa64.zip file should now be located within the ~/Downloads/matlab directory.

Install Matlab on Ubuntu

At this stage we are ready to start the Matlab installer wizard:
$ cd matlab
$ sudo ./install
install matlab ubuntu 18.04 - select installation method
Select which installation method you wish to perform. If you do not have File installation Key choose Log in.
install matlab ubuntu 18.04 - License Agreement
Matlab License Agreement.


install matlab ubuntu 18.04 - Create MathWorks account or provide Login credentials
Create MathWorks account or provide Login credentials.
install matlab ubuntu 18.04 - Select License
Select your license.
install matlab ubuntu 18.04 - matlab installation directory
If you followed this guide from the beginning, than leave the default path as the one that has been created for the destination of our Matlab install. That is /usr/local/MATLAB/R2018a/.
install matlab ubuntu 18.04 - Select products to install
Select products to install.


install matlab ubuntu 18.04 - Create symbolic links to MATLAB scripts
Select Create symbolic links to MATLAB scripts. Unless you know what you are doing, leave the default /usr/local/bin destination directory.
install matlab ubuntu 18.04 - Matlab installation summary
Matlab installation summary.
install matlab ubuntu 18.04 - Matlab installation in progress.
Matlab installation in progress. Nothing to do. Sit back and wait.
install matlab ubuntu 18.04 - width=Matlab activation">
Matlab activation is rather not optional.

SUBSCRIBE TO NEWSLETTER
Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


install matlab ubuntu 18.04 - activation
Hit NEXT
install matlab ubuntu 18.04 - Confirm Matlab license number
Confirm Matlab license number.
install matlab ubuntu 18.04 -
All done.
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 goo.gl/NDyi9t 
$ sudo wget -qO /usr/share/applications/matlab.desktop goo.gl/NaHXrn
Optionaly, use a text editor and edit /usr/share/applications/matlab.desktop to reflect your Matlab version number.
$ sudo nano /usr/share/applications/matlab.desktop
install matlab ubuntu 18.04 - start matlab shortcut
Search your Start/Activities menu for the matlab keyword. Start Matlab by clicking on its icon.
install matlab ubuntu 18.04 - Matlab is starting.
Matlab is starting.


install matlab ubuntu 18.04 - Matlab installation on Ubuntu 18.04 is completed
All done. Matlab installation on Ubuntu 18.04 is completed.

Clean up

All that remains, is to remove the Matlab's installation file and the temporary directory:
$ rm ~/Downloads/matlab_R2018a_glnxa64.zip
$ rm -fr ~/Downloads/matlab
Enjoy!
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.