Clear Filters
Clear Filters

How do I install on Ubuntu?

2,382 views (last 30 days)
John Griffin
John Griffin on 17 Apr 2020
Commented: Mohamed Kbaier on 19 May 2024
I am a novice Ubuntu user, I know how to use Terminal. I am trying to install MATLAB 2020a on my Ubuntu machine, I have downloaded the Linux Installer which is a zip folder. What do I do from here? Thanks!

Answers (3)

Karim Ghezali
Karim Ghezali on 9 May 2020
How to install MATLAB R2020a on ubuntu
  • Download the Matlab installer file
  • Unzip the installer file using this command:
unzip -X -K -d matlab_2020a_installer
  • Open the matalab_2020a_installer folder and open a terminal
  • use your terminal as root using the following command :
sudo su
  • type your password then :
sudo ./install
Now the MATLAB Installer is on, sign in, follow the steps and choose the product that you need
Nb :
Be sure to run the installer as root that will allow matlab to write in /usr/local/MATLAB/R2020a folder
Using only the sudo command can cause this error message :
$ sudo ./install
No protocol specified
terminate called after throwing an instance of '(anonymous namespace)::DisplayError'
what(): No display available.
While installaing matlab in ubunru i am geeting below error.Please help me to install.

Sign in to comment.

William Rolen
William Rolen on 26 Oct 2020
You dont actually have to install it to root. You can just install to your home directory. I would actually prefer this way, particularly if you work on a cluster.
Mahmod Karndash
Mahmod Karndash on 22 Jun 2022
root@DESKTOP-SMROJT0:~/softwares/R2018a# sudo ./install
Preparing installation files ...
Installing ...
the installer does not launch and MATLAB is not installed.
please help
Mohamed Kbaier
Mohamed Kbaier on 19 May 2024
sudo ./install it works. 00EKm:~/Téléchargements/matlab_R2024a_Linux$ sudo ./install

Sign in to comment.

Samuel Gray
Samuel Gray on 25 May 2021
The basic problem is that "Linux Matlab" was initially only compatible with RedHat based Linux and has gained compatibility with Debian-based Ubuntu over time.
To install the older RH based Matlab on Ubuntu you have to go into the distribution tree and run an "alternate" installer. Look at the readme files which will show how to do this. Look for the section that has to do with the GUI failing to launch.
The later versions are compatible with Ubuntu and as such an upgraded version should not have this problem. So now you just have to worry about what version of Linux to run as there are definite advantages to each.


Find more on Introduction to Installation and Licensing in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!