How can I change the default installed folder of openExample() function?

1 回表示 (過去 30 日間)
Yoshinobu Kawada
Yoshinobu Kawada 2018 年 8 月 31 日
回答済み: Stefanie Schwarz 2021 年 3 月 22 日
I changed the place of MATLAB projects folder in my Windows10 PC. For example, from 'c:\Users\(my account name)\MATLAB' to 'd:\MATLAB'. And I modified MATLAB -> 'Home' -> 'Set Path' -> 'MATLAB search path:' settings to suit this changing. However, openExample() function have installed a example to old folder. I saw help document, and tried to replace the default folder by performing openExample(example name, new folder path), but it was not worked. Could you please tell me how to change the default installed folder of openExample() function?

採用された回答

Naoya
Naoya 2018 年 9 月 3 日
openExample() で展開されるフォルダは、 userpath() で定義されるフォルダとなっております。 現状の既定のユーザの作業フォルダは、
>> userpath
より確認できます。
例えば、
>> userpath('d:\matlab')
と設定することよりユーザの作業フォルダを d:\matlab へ変更することができ、openExample() で展開されるフォルダも該当フォルダになります。

その他の回答 (2 件)

Yoshinobu Kawada
Yoshinobu Kawada 2018 年 9 月 3 日
Thank you very much for your kind support. This problem is solved.

Stefanie Schwarz
Stefanie Schwarz 2021 年 3 月 22 日
See the following MATLAB Answers Post to see different options of changing the folder used by "openExample":

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by