MATLAB Answers

Question of automatically creating MATLAB folder

44 views (last 30 days)
Pengyu
Pengyu on 17 Oct 2014
Answered: Stefan Baginski on 29 Jul 2020
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!

Accepted Answer

Ken Atwell
Ken Atwell on 17 Oct 2014
Edited: Ken Atwell on 17 Oct 2014
Try:
>> userpath /my/custom/location
Then restart MATLAB.

More Answers (1)

Stefan Baginski
Stefan Baginski on 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

Tags

Community Treasure Hunt

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

Start Hunting!