ObjectiveThis 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
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
PreparationsBefore 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
Open up terminal and confirm that
matlab_R20XXa_glnxa64.zipis located within your
$ ls ~/Downloads/ matlab_R2018a_glnxa64.zipNext, create a destination
/usr/local/MATLAB/R2018a/directory for the Matlab installation.
$ sudo mkdir -p /usr/local/MATLAB/R2018a/Now you are ready to
unzipthe Matlab installation package.
Unzip MatlabNavigate to your
~/Downloadsdirectory and create a new temporary
matlabdirectory to store the content of the
$ cd Downloads $ mkdir matlabWhile still in the
~/Downloadsdirectory use the
unzipcommand to extract the content of the
matlab_R20XXa_glnxa64.zipfile into the previously created
$ unzip -q matlab_R2018a_glnxa64.zip -d matlabThe content of the
matlab_R20XXa_glnxa64.zipfile should now be located within the
Install Matlab on UbuntuAt this stage we are ready to start the Matlab installer wizard:
$ cd matlab $ sudo ./install
$ sudo wget -qO /usr/share/icons/matlab.png goo.gl/NDyi9t $ sudo wget -qO /usr/share/applications/matlab.desktop goo.gl/NaHXrnOptionaly, use a text editor and edit
/usr/share/applications/matlab.desktopto reflect your Matlab version number.
$ sudo nano /usr/share/applications/matlab.desktop
Clean upAll that remains, is to remove the Matlab's installation file and the temporary directory:
$ rm ~/Downloads/matlab_R2018a_glnxa64.zip $ rm -fr ~/Downloads/matlabEnjoy!