MATLAB: How to change the default path by using command

commanddefault path

Dear all,
I want change the default path to my project-document when MATLAB is starting, so that I need not to change it manually every time when I use the software.
Anyone know that how to do it? Can I finish it by the command?
Thanks a lot~~~

Best Answer

Use pathtool() and ask it to save the path.