Friday, May 3, 2024
32
rated 0 times [  32] [ 0]  / answers: 1 / hits: 85434  / 2 Years ago, thu, april 21, 2022, 10:37:30

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, /usr/local/MATLAB/R2012a.



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



matlab


into terminal it says:



command not found


How can I fix this problem?


More From » command-line

 Answers
5

Try navigating to bin folder in your Matlab installation directory:



cd /usr/local/MATLAB/R2012a/bin


Then execute Matlab from there:



./matlab


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?


[#35663] Thursday, April 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
allally

Total Points: 487
Total Questions: 106
Total Answers: 110

Location: Laos
Member since Sun, Jul 3, 2022
2 Years ago
;