Development Environment    

Saving Settings to the Path

When you make changes to the search path, they remain in effect during the current MATLAB session. To keep the changes in effect for subsequent sessions, save the changes. To save changes using the Set Path dialog box, click Save.

The search path is stored in the pathdef.m file. By default, pathdef.m is stored in $matlabroot\toolbox\local. On Windows platforms, you can use a different pathdef.m if you store it in your startup directory - see Startup Directory for MATLAB.

You can directly edit pathdef.m with a text editor to change the path.

On UNIX workstations you may not have file system permission to edit pathdef.m. In this case, put path and addpath functions in your startup M-file to change your path defaults.


 Restoring the Default Search Path File Operations