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?
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>')
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.
精彩评论