This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Remove folders from search path





rmpath(folderName) removes the specified folder from the search path.


collapse all

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


Input Arguments

collapse all

Name of folder to remove from the search path, specified as a character vector or string scalar. Use the full path name for folderName.

Example: 'c:\matlab\work'

Example: '/home/user/matlab'

MATLAB® resolves all path names containing '.', '..', and symbolic links to their target location before removing them from the path. For example, if you specify c:\matlab\..\work, MATLAB removes the folder c:\work from the path.

Data Types: char | string

Introduced before R2006a