Trying to ammend pathdef.m using the Set Path button on the Home bar.

2 ビュー (過去 30 日間)
Kyle
Kyle 2023 年 10 月 17 日
編集済み: Jan 2023 年 10 月 18 日
I used the Set Button on the home tab to add some directories with new functions. When I assumed I needed to click save then close. When I click save I get a popup requesting admin privledges which I have. Then I get the following:
I tried saving an alternate in a different folder to keep the default in tact, but then I cant get Matlab to use the alternate instead at startup.

回答 (1 件)

Jan
Jan 2023 年 10 月 18 日
編集済み: Jan 2023 年 10 月 18 日
If you want to modify the pathdef.m file for all users of the computer, start Matlab with admin or root privileges. Then overwritig the file will work.
To let each user run their own pathdef.m file, store this file in the "startup folder". You can set this folder manually in the settings of Matlab: Preferences -> General -> Initial working folder.This is manages individually for each user.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by