Development Environment    

Removing Directories from the Search Path

To remove directories from the MATLAB search path using the Set Path dialog box:

  1. Select the directories to remove.
  2. Click Remove.
  1. The directories are removed from the search path for the remainder of the current MATLAB session. To use the newly modified search path in subsequent sessions, you need to save the path--see Saving Settings to the Path.

Function Alternative.   To remove directories from the search path, use rmpath.

You can include rmpath functions in your startup M-file to automatically modify the path when MATLAB starts.


  Moving Directories Within the Search Path Restoring the Default Search Path