MATLAB path linked to last user account for designated computer license installed on Windows 10 device

1 回表示 (過去 30 日間)
I have a designated computer license installed on a shared desktop allowing individual Windows account users to login and open MATLAB. Although MATLAB runs fine for each user I have noticed on startup it tries to find paths set by the previous user that results in the following warning message:
Is this an issue with the installation?

採用された回答

Fangjun Jiang
Fangjun Jiang 2021 年 8 月 17 日
編集済み: Fangjun Jiang 2021 年 8 月 17 日
There is no problem with the installation.
No one should modify the build-in pathdef.m.
Instead, everyone should use a short-cut icon to start MATLAB. The startup folder can be specified at the shortcut icon. Utilize MATLAB preference and save customize folder to user path.
prefdir()
userpath()
  3 件のコメント
Fangjun Jiang
Fangjun Jiang 2021 年 8 月 17 日
Don't touch the built-in pathdef.m file, which specify the default MATLAB path. When a user need to modify the path, use savepath() to save the pathdef.m to a different folder. Only need to use savepath() command once. Next time, you can use pathtool() GUI to save the path file. It saves to the first found pathdef.m file.
Every time when MATLAB starts, it runs the first found pathdef.m file. That is when the preferdir() and startup folder matters. By specifying different startup folder or preference folder, each user can use a different pathdef.m file.
Tyler Gerhardson
Tyler Gerhardson 2021 年 8 月 17 日
This worked. Thank you for the detailed description.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by