Is Matlab path automatically added to evironment variables after installation?

1 回表示 (過去 30 日間)
hedia gzr
hedia gzr 2019 年 10 月 25 日
コメント済み: Walter Roberson 2019 年 10 月 29 日
Hi All,
I was wondering if Matlab path is s automatically added to evironment variables after installation or it is just an option should be added by the user? I am running an app to launch matlab each time from CMD but I am not sure if it is always good to do it this way since I have a doubt that matlab's path is not automatically added.
Any answer is appreciated.
Best,

採用された回答

Jason Ross
Jason Ross 2019 年 10 月 25 日
You should set up your application to find the correct/desired installation of MATLAB and use it. Relying on the path leaves you open to potential error conditions (no MATLAB on the PATH, multiple MATLABs on the path, the wrong MATLAB on the PATH), and assumes that not only the end-user has the ability to modify the PATH themselves, but that 1) they know how to modify it 2) they modify it correctly and 3) they will do it whenever they install your application.
  2 件のコメント
hedia gzr
hedia gzr 2019 年 10 月 29 日
Thank you for your answer!
Walter Roberson
Walter Roberson 2019 年 10 月 29 日
With MS Windows, typically the "right" way is to use the registry to locate MATLAB. It is a bit of a nuisance, but it is what the registry is designed for.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by