how to change matlabroot on ubuntu 12.04

19 Ansichten (letzte 30 Tage)
Octavian
Octavian am 2 Dez. 2013
Beantwortet: Tony Evans am 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

Antworten (1)

Tony Evans
Tony Evans am 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.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by