Question of automatically creating MATLAB folder

27 Ansichten (letzte 30 Tage)
Pengyu
Pengyu am 17 Okt. 2014
Kommentiert: MEHMET BAYIK am 4 Nov. 2022
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!

Akzeptierte Antwort

Ken Atwell
Ken Atwell am 17 Okt. 2014
Bearbeitet: Ken Atwell am 17 Okt. 2014
Try:
>> userpath /my/custom/location
Then restart MATLAB.
  4 Kommentare
Neil Spencer
Neil Spencer am 10 Jan. 2022
Many thanks for this - still works for me in version R2021b in January 2022.
MEHMET BAYIK
MEHMET BAYIK am 4 Nov. 2022
Thanks a lot. Just for reference, it still works on r2022a version on M1 processor via Rosetta 2.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Stefan Baginski
Stefan Baginski am 29 Jul. 2020
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

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by