Clear Filters
Clear Filters

how to change matlabroot on ubuntu 12.04

9 views (last 30 days)
Octavian
Octavian on 2 Dec 2013
Answered: Tony Evans on 12 Apr 2019
Dear All,
I have 2012b installed and working on my ubuntu 12.04 box, I just downloaded and installed the 2013b version, but when I start matlab from the command line, the old 2012b version pops up.
How do I change matlab root from /usr/local/MATLAB/R2012b to /usr/local/MATLAB/R2013b, and delete the 2012b version?
Thank you,
Octavian

Answers (1)

Tony Evans
Tony Evans on 12 Apr 2019
If you have more than one version of Matlab installed, and you want the newer one to run I would change the symbolic link instead.
Open a terminal window and go to
/usr/local/bin folder
remove the old symbolic link with
sudo rm matlab
Create a new symbolic link to your newer version of Matlab. In my system it is located in /usr/local/R2016a (on yours it is /usr/local/MATLAB/R2013b) .
sudo ln -s /usr/local/R2016a/bin/matlab matlab
Now when you run matlab from the terminal, it should open the newer version.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!