Change Matlab 2009 Startup Folder Position
I prefer not use MATLAB default folder (normally is: C:\Users\Dean\Documents\MATLAB) as the startup folder. I’ve all my MATLAB files stored in a folder called H:\svn\matlab\trunk, I basically wanted MATLAB starts and in this folder. This normally is very easy to do (at least with pre-2009 versions), however I received error message and found I need to use
savepath
to sort out this problem. This is how I will do it.
Change the Property
Right click the Matlab Shortcuts, and choose Properties, in the Start in, I put down H:\svn\matlab\trunk
I hope it works now, but I received the following error messages
Solve the Error Messages Problem
The error message I received is like this:
Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\datafun. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\datatypes. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\elfun. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\elmat. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\matfun. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\ops. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\sparfun. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\distcomp\parallel\specfun. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\map\maputils. Warning: Name is nonexistent or not a directory: C:\Program Files\MATLAB\R2009b\toolbox\physmod\network_engine\ne_sli.
-
I firstly checked and make sure these files are actually exist.
-
I used the following MATLAB command to verify my path information
-
I removed the Path I didn’t want to be included
-
Save the path
>> path MATLABPATH C:\Users\Dean\Documents\MATLAB C:\Program Files\MATLAB\R2009b\toolbox\matlab\general C:\Program Files\MATLAB\R2009b\toolbox\matlab\ops C:\Program Files\MATLAB\R2009b\toolbox\matlab\lang
Or
>> path MATLABPATH H:\svn\matlab\trunk C:\Program Files\MATLAB\R2009b\toolbox\matlab\general C:\Program Files\MATLAB\R2009b\toolbox\matlab\ops C:\Program Files\MATLAB\R2009b\toolbox\matlab\lang
rmpath('H:\svn\matlab\trunk')
rmpath('C:\Users\Dean\Documents\MATLAB')
savepath
And now, the error message are gone (I’ve tested on two computers). Please let me know if this also works for you.

