Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with the MATLAB 2012 installation.

After having installed it using Alt + F2 and having used

gksudo nautilus

I have installed MATLAB in the correct folder, which is:


Then I inserted the license and the window told "activation complete" or something like that.

This made me happy, but only for a while because as soon as I try to search for MATLAB within the applications I cannot find it and neither if I try to run


into terminal it says:

command not found

How can I fix this problem?

share|improve this question
up vote 25 down vote accepted

Try navigating to bin folder in your Matlab installation directory:

cd /usr/local/MATLAB/R2012a/bin

Then execute Matlab from there:


Source: How do I launch MATLAB on Linux?

If that worked for you, you can create alias:

cd /usr/local/bin/
sudo ln -s /usr/local/MATLAB/R2012a/bin/matlab matlab

This trick will allow you to launch matlab from any directory, as you were trying to do. Note that you should use sudo for the last command, since it creates alias globally, for all users.

If you are not in sudoers list (i.e. you cannot use sudo command), you can create alias locally. To do that, open .bashrc file, which is in your home directory:

gedit ~/.bashrc

Add the following line to the end of that file:

alias matlab="/usr/local/MATLAB/R2012a/bin/matlab"

Finally, reopen your terminal, or type source ~/.bashrc and execute this command.

Source: How do I create shortcuts, aliases, or links to MATLAB?

share|improve this answer
Thank you very much for the first part: Matlab now opens and it works from the folder where I installed it, anyway it fails to create the symbolic link since the terminal tells "permission denied" – Mattia Sep 9 '12 at 11:41
Sorry, it is my fault. You should use sudo for the symbolic link creation command: "sudo ln -s /usr/local/MATLAB/R2012a/bin/matlab matlab". – Andrey Sep 9 '12 at 15:05
Updated the answer. – Andrey Sep 9 '12 at 15:14
Comprehensive answer. I like it. – NlightNFotis Sep 9 '12 at 18:00
@Mattia, have you made any progress with creating an alias? If yes, please mark this answer as an "accepted". – Andrey Sep 10 '12 at 17:09

I've just installed Matlab 2012b on Ubuntu 12.10 and followed up by installing the matlab-support package in the Ubuntu Software Centre:

sudo apt-get install matlab-support

(As per this answer in a related question:

share|improve this answer
by far the easiest solution! And quick, takes only 2 min to download and configure (and I'm using a 7 year old laptop so ...) – Dominique May 3 '14 at 22:36

protected by Community Aug 17 '15 at 9:35

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.