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 22.04 Jammy Jellyfish Linux.
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 22.04 step by step instructions
The first thing we need to do is Head over to the the official Matlab website and download the latest MATLAB installation package.
π Download the Linux package for MATLAB software Download the Linux package for MATLAB software
Once ready the MATLAB installation package should be located within your ~/Downloads directory unless you manually selected a different location to download to.
π MATLAB installer file is in our user's Downloads directory MATLAB installer file is in our userβs Downloads directory
The next step is to unzip the downloaded MATLAB package. To do so execute the following command from within your Downloads directory. Update the package name where appropriate:
Confirm your user and email are correct and then click Next to proceed.
π Confirm user and email Confirm user and email
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/R2022a/.
π Select installation directory for MATLAB Select installation directory for MATLAB
Select Create symbolic links to MATLAB scripts. Unless you know what you are doing, leave the default /usr/local/bin destination directory in the field.
π Create symbolic link to MATLAB scripts Create symbolic link to MATLAB scripts
MATLAB will give you a summary of the installation. Click on βBegin installationβ to start it.
π MATLAB installation summary MATLAB installation summary
After the installation finishes up, we will create a shortcut launcher for an easy Matlab application start. While still in the terminal execute the following Linux commands:
Optionally, use a text editor and edit /usr/share/applications/matlab.desktop to reflect your Matlab version number.
Search your Activities menu for the matlab keyword. Start Matlab by clicking on its icon.
π Start MATLAB from the Activities menu Start MATLAB from the Activities menu
In this tutorial, we saw how to install MATLAB on Ubuntu 22.04 Jammy Jellyfish Linux. We also learned how to create a MATLAB shortcut so you can open it easily in the future. Now you can use MATLAB to start a new project or import an existing one.