how to change matlabroot on ubuntu 12.04
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Tony Evans
2019-4-12
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!