How to deploy a specific version of matlab when there are two versions installed on Linux?

159 ビュー (過去 30 日間)
drummer
drummer 2019 年 7 月 1 日
コメント済み: Brian Carlton 2021 年 8 月 5 日
Hi all,
I have two versions of matlab installed in Linux ubuntu (15a and 19a).
Once I type matlab on terminal, the 2019 version pops up. How to deploy the older version instead? How can I choose between them through terminal?
  2 件のコメント
drummer
drummer 2019 年 11 月 21 日
Thanks guys.
The easiest way I found was using the terminal is going to the bin of MATLAB folder.
Mine is located in /usr/local/MATLAB/R20xx/bin.
In MATLAB you're gonna find all the versions installed in your computer.
After choosing the one you want to deploy, go into the bin folder of the chosen version and type ./matlab
Holger I. Meinhardt
Holger I. Meinhardt 2019 年 11 月 22 日
I want to give rise to a particular concern that your approach is, of course, easy but it does not initialize a clear and separated environment for each Matlab version. By your approach, you must expect that the launched Matlab versions are not dynamically linked against the correct libraries, which may cause a crash.

サインインしてコメントする。

回答 (2 件)

Holger I. Meinhardt
Holger I. Meinhardt 2019 年 7 月 4 日
I recommend to use the Environment Modules package from
that allows to alter or to set shell environment variables such as PATH, MANPATH etc. After installation and configuration one can call a specific version of Matlab by executing in the shell
module load matlab/R2019a
For changing the version one has to unload first the previous loaded Matlab version by
module unload matlab/R2019a
and then one needs to load the other version by
module load matlab/R2015a

Image Analyst
Image Analyst 2019 年 7 月 4 日
You can go into FileExplorer to the folder of the one you want to launch, and double click it.
  2 件のコメント
Aidan Scott
Aidan Scott 2020 年 3 月 4 日
編集済み: Aidan Scott 2020 年 3 月 4 日
To clarify, you need to go to /MATLAB/20XXX/bin where you will find matlab.exe
where the 20XXX is the version that you want to open.
Brian Carlton
Brian Carlton 2021 年 8 月 5 日
Note that the question asks about Ubuntu, where .exe files do not exist.
The relavent directory on (many) linux installations would be /usr/local/MATLAB/version/bin

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by