Installing MATLAB 2025a in Ubuntu 22.04

144 visualizzazioni (ultimi 30 giorni)
Utsa
Utsa il 24 Giu 2025
Modificato: Star Strider il 1 Dic 2025 alle 17:26
I am trying to install the MATLAB 2025a on my Ubuntu 22.04 system. I saw one tutorial online which shows the sudo su command after unzipping the file. Now, on the installation pdf it shows to run the install script after unzipping the file. I am unable to understand what that means and also should I do the sudo su command after the unzipping?
Please Help I am new to Ubuntu.

Risposte (1)

Star Strider
Star Strider il 24 Giu 2025
Modificato: Star Strider il 1 Dic 2025 alle 17:26
I run the MATLAB Installer. This usually works, however it will first stop when it cannot create the installation directory. You will need to use sudo mkdir to create it, and then the installation should proceed until you get to the point where it needs to create the image. Use sudo mkcir for that as well.
This usually works, however I have occasionally had problems.
I am also relatively new to Ubuntu, and have 24.04 installed. I suggest that you first install 24.04 since it has some enhanced capabilities, however first save all your user files to an SD card or USB drive, since the installation may completely destroy any that exist.
To run MATLAB, click on Files to open it, then + Other Locations and open that in a new window. After that, click on Ubuntu then usr then local then bin that should reveal the matlab directory. Right-click on it, then choose Run as a Program from the pop-up menu that appears. That should launch MATLAB and will later, incluidng the Editor even if you have it open and un-docked.
There may be other ways to install and launch MATLAB. What I described here works for me.
EDIT -- (01 Dec 2025 at 17:26)
A slight update --
This is written for R2025b, however it should work for other releases as well. (I am using Ubuntu 24.04 with the latest updates.) Make appropriate changes with respect to the release name.
FIRST: Follow the directions in the MATLAB Installation Help .PDF documentation for Linux.
Specifically, open one or more Terminal windows to first run these:
unzip matlab_R2025b_Linux.zip -d ./matlab_R2025b_Linux
cd ./matlab_R2025b_Linux
And then these:
xhost +SI:localuser:root
sudo -H ./install
xhost -SI:localuser:root
SECOND: 'cd' to the root directory using 'cd ..' as many times as necessary.
THEN:
your_computer_information:/$ cd usr
your_computer_information:/usr$ cd local
your_computer_information:/usr/local$ cd bin
your_computer_information:/usr/local/bin$ mkdir MATLAB
your_computer_information:/usr/local/bin$ cd MATLAB
your_computer_information:/usr/local/bin/MATLAB$ mkdir R2025b
your_computer_information:/usr/local/bin/MATLAB$
Check the box to create a symbolic link to this MATLAB installation, click on 'Continue'.
Everything should then proceed automatically.
.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by