How to Install Matlab on Ubuntu

Step 1.

Download Matlab for Linux using the link provided by the college after you make an account on official Matlab website using your college email id.

Step 2.

Open up the terminal and confirm that matlab_R20XXa_glnxa64.zip is located within your ~/Downloads directory:

$ ls ~/Downloads/
matlab_R2018a_glnxa64.zip

Step 3.

Create a destination /usr/local/MATLAB/R2018a/ directory for the Matlab installation.

$ sudo mkdir -p /usr/local/MATLAB/R2018a/

Step 4.

Unzip the Matlab installation package.
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
$ unzip -q matlab_R2018a_glnxa64.zip -d matlab

Step 5.

Start the Matlab installer wizard:

$ cd matlab
$ sudo ./install
$whoami
ananya@ananya:~$matlab
/usr/local/MATLAB/R20XXx/bin/matlab
cd /usr/local/MATLAB/R2016b/bin/
./matlab

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store