Documentation Center

  • Trials
  • Product Updates

Changing the Startup Folder

Changing Startup Folder With userpath Function

To change the startup folder, as well as to add the startup folder to the search path upon startup, use the userpath function. For more information, see MATLAB Startup Folder.

Changing Startup Folder Using Shortcut — Windows Platforms Only

To change the startup folder on Windows® platforms using the shortcut,

  1. Right-click the shortcut icon for MATLAB® and select Properties from the context menu.

    The Properties dialog box for MATLAB opens to the Shortcut pane.

  2. The Target field contains the full path to start MATLAB.

    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.

Changing Startup Folder Using startup.m File

To specify the startup folder, as well as other startup options, use the startup.m file. For more information, see Specifying Startup Options in MATLAB Startup File.

Was this topic helpful?