# How do I change the Startup folder in MATLAB?

Change Startup Folder On the Home tab, in the Environment section, click Preferences. Select MATLAB > General. Choose an option for the Initial working folder preference. Alternatively on Windows platforms, specify the initial working folder in the MATLAB shortcut icon.

Table of Contents

## How do I change the Startup folder in MATLAB?

Change Startup Folder On the Home tab, in the Environment section, click Preferences. Select MATLAB > General. Choose an option for the Initial working folder preference. Alternatively on Windows platforms, specify the initial working folder in the MATLAB shortcut icon.

## Where is MATLAB startup file?

At startup, MATLAB automatically executes the matlabrc function and, if it exists on the MATLAB search path, startup . The matlabrc file, which is in the matlabroot /toolbox/local folder, is reserved for use by MathWorks® and by system administrators on multiuser systems.

**What is the default MATLAB path?**

By default, MATLAB adds the userpath folder to the search path at startup. This folder is a convenient place for storing files that you use with MATLAB. The default userpath folder is platform-specific. Windows® platforms — %USERPROFILE%/Documents/MATLAB .

**How do I restore default path in MATLAB?**

Restore the default search path using functions:

- Run restoredefaultpath , which sets the search path to the default and stores it in matlabroot /toolbox/local .
- If restoredefaultpath seems to correct the problem, run savepath .
- Restart MATLAB to ensure that the problem does not recur.

### What is MATLAB search path?

The search path, or path is a subset of all the folders in the file system that MATLAB uses to locate files efficiently. Change Folders on Search Path. Interactively add and remove folders, and change the order of folders on the search path, for the current MATLAB session and for future MATLAB sessions.

### What is ADD path in MATLAB?

Description. example. addpath( folderName1,…,folderNameN ) adds the specified folders to the top of the search path for the current MATLAB® session. example. addpath( folderName1,…,folderNameN , position ) adds the specified folders to the top or bottom of the search path, as specified by position .

**How does MATLAB path work?**

What Is the MATLAB Search Path? The search path, or path is a subset of all the folders in the file system that MATLAB uses to locate files efficiently. Interactively add and remove folders, and change the order of folders on the search path, for the current MATLAB session and for future MATLAB sessions.

**Where are MATLAB preferences?**

To open the Preferences window, do one of the following: MATLAB Toolstrip: On the Home tab, in the Environment sections, click Preferences. MATLAB command prompt: Enter preferences .

#### How do I change the path of a file in MATLAB?

MATLAB’s path can be changed using the “Set Path” button in the toolbar. Alternatively, run the command “pathtool” in MATLAB. Functionality such as adding individual folder, adding folders with subfolders, removing folders, and arranging the search path is available in the path tool.