Desktop Tools and Development Environment Previous page   Next Page

Moving Directories Within the Search Path

The order of files on the search path is relevant--for more information, see How the Search Path Determines Which Function to Use.

To modify the order of directories within the search path,

  1. Select the directory or directories you want to move.
  2. Click one of the Move buttons, such as Move to Top. The order of the directories changes.
  3. To use the newly modified search path in future sessions, click Save. For more information about saving the path, see Saving Settings to the Path.
  4. Click Close. If you did not save the changes in the previous step, the new order of files on the search path remains in effect until you end the current MATLAB session.

Function Alternative.   While there is not a specific function to move directories, you can edit the pathdef.m file with any text editor to change the order of the directories. Use caution when editing the file so that you do not make MATLAB and toolbox functions unusable.


Previous page  Viewing the Search Path Removing Directories from the Search Path Next page

© 1994-2005 The MathWorks, Inc.