Question of automatically creating MATLAB folder

Every time I open MATLAB, it creates a MATLAB folder automatically for me under ~/Documents/. Is there any way that to stop it doing this? I use Mac OS X 10.10 and I set default startup path to be a custom path. Thank you!

1 件のコメント

ENRICO SILVESTRI
ENRICO SILVESTRI 2020 年 4 月 21 日
I have the same problem lmao.

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

 採用された回答

Ken Atwell
Ken Atwell 2014 年 10 月 17 日
編集済み: Ken Atwell 2014 年 10 月 17 日

21 投票

Try:
>> userpath /my/custom/location
Then restart MATLAB.

5 件のコメント

Pengyu
Pengyu 2014 年 10 月 17 日
Thank you!
Markus Pauly
Markus Pauly 2020 年 5 月 15 日
The only answer, that worked for me. Thanks a lot!
Neil Spencer
Neil Spencer 2022 年 1 月 10 日
Many thanks for this - still works for me in version R2021b in January 2022.
MEHMET BAYIK
MEHMET BAYIK 2022 年 11 月 4 日
Thanks a lot. Just for reference, it still works on r2022a version on M1 processor via Rosetta 2.
Zaidan
Zaidan 2024 年 10 月 26 日
This still works like a charm on the R2024a Version on M3 Processor. Thank you so much!

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

その他の回答 (1 件)

Stefan Baginski
Stefan Baginski 2020 年 7 月 29 日

2 投票

Many thanks. This has helped me as well. Just for reference this is the command I have used to set it up:
userpath("/Users/Stefan/Library/Mobile Documents/com~apple~CloudDocs/MATLAB")
Afterwards the MATLAB folder in Documents is no ~/Documents/ is no longer created.
Best
Stefan

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

質問済み:

2014 年 10 月 17 日

コメント済み:

2024 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by