How to change MATLAB’s default startup folder
MATLAB 2013b and older:
Goto the the command window and type:
userpath('directory_you_want')
Where “directory_you_want” might be c:\matlab
MATLAB 2014a and newer:
- Open the Preferences dialog (Home > Preferences).
- Goto MATLAB > General.
- Change Initial working folder.