rmpath - Remove directories from search path

GUI Alternatives

As an alternative to the rmpath function, use the Set Path dialog box. To open it, select File > Set Path in the MATLAB® desktop.

Syntax

rmpath('directory')
rmpath directory

Description

rmpath('directory') removes the specified directory from the current search path MATLAB uses. Use the full pathname for directory.

rmpath directory is the command form of the syntax.

Examples

Remove /usr/local/matlab/mytools from the search path.

rmpath /usr/local/matlab/mytools

See Also

addpath, cd, dir, genpath, matlabroot, partialpath, path, pathdef, pathsep, pathtool, rehash, restoredefaultpath, savepath, userpath, what

Search Path in the MATLAB Desktop Tools and Development Environment documentation

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS