Reputation: 38654
I have Matlab (2009b, Windows 7) set up to start in a special folder where I keep all my Matlab files and a startup script. This folder is not in "My Documents"
Still, Matlab creates an empty folder called "MATLAB" in "My Documents" every time it is started. This is very annoying since this change propagates to other computers which share the document folder. How can I prevent this?
Upvotes: 7
Views: 2073
Reputation: 74940
userpath('clear')
should do the trick.
[edit]: As per comments, on some (newer?) systems, you may have to set userpath
to an existing folder, i.e. userpath('<new_path>')
Upvotes: 10
Reputation: 2630
Just specify a new location for this folder:
>> userpath \Location\of\your\choice
You can you for instance a hidden folder. In my case I used ~/Documents/.matlab
on my Linux laptop.
Upvotes: 1