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.

Function Alternative.   Use path2rc to save the current path to pathdef.m.

Editing pathdef.m

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

If you do not have file system permission to edit pathdef.m, put path and addpath functions in your startup.m file to change your path defaults.


  Restoring the Default Search Path File Operations