You can start MATLAB® in a folder other than the default in one of these ways:
|On this page…|
Use the userpath function to change the startup folder as well as to add the startup folder to the search path upon startup. For more information, see the userpath reference page and MATLAB Startup Folder.
To change the startup folder on Windows® platforms using the shortcut,
The Properties dialog box for MATLAB opens to the Shortcut pane.
By default, the startup folder is Documents\MATLAB; for more information, see Startup Folder on Windows Platforms.
In the Start in field, specify the full path to the folder in which you want MATLAB to start, and click OK.
The next time you start MATLAB using that shortcut icon, the current folder will be the one you specified in step 2.
You can make multiple shortcuts to start MATLAB, each with its own startup folder, and with each startup folder having different startup options.
Use the startup.m file to specify the startup folder as well as other startup options—for details, see Specifying Startup Options in the MATLAB Startup File.