Score:1

Installation of MATLAB on 22.04 finished but cannot start it

cn flag
Max

I am on a Lenovo Legion 5 Pro with dual boot, Windows 11 and Ubuntu 22.04 LTS. I am trying to install MATLAB R2022b on the Ubuntu.

I downloaded the current zip file from Mathworks and pretty much followed the instructions from https://linuxconfig.org/how-to-install-matlab-on-ubuntu-22-04-jammy-jellyfish-linux. This means that I unzipped the installation files into ~/Documents/matlab and then installed it into /usr/local/MATLAB/R2022b/.

The installation GUI opened, everything seemed to work fine, after it got to 100% it closed by itself. Then, I tried to start MATLAB using Activities, and there is no MATLAB. I tried typing matlab into the terminal, it doesn't know the command.

Further inspection shows that there is no matlab.desktop file to be found, and whereis matlab comes up empty.

There are files in the directory /usr/local/MATLAB/R2022b/ though: enter image description here

And this is what is in the bin: enter image description here

Double clicking on matlab opens up the file as a text file and here it also doesn't know the command:

/usr/local/MATLAB/R2022b/bin$ matlab
matlab: command not found

At this point I have no idea if MATLAB is actually installed and there just isn't any link to the executable from a directory on my path OR something went wrong in the installation. Does anyone have any ideas how to proceed?

us flag
what's in the bin directory?
Max avatar
cn flag
Max
I added it to the question itself
us flag
run ./matlab from the bin directory rather than matlab
Max avatar
cn flag
Max
omg why didn't I think of that... Thanks! Do you know by any chance how I can create a link so that it shows up in my Activities?
Score:2
us flag

cd to the matlab bin directory and run matlab

cd /usr/local/MATLAB/R2022b/bin
./matlab

I imagine the whole path would work

I think this link shows you how to add it to activites. The accepted answer written by shade of blue says

The obscure directory you're looking for would be: /usr/share/applications.

Just have a look at the *.desktop files there, choose one that doesn't have too much cruft, copy it to a new .desktop file and edit to reflect your app.

If that doesn't work, maybe try the other answers.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.