rmpath

Remove folders from search path

Syntax

rmpath(folderName)

Description

example

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

Examples

collapse all

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

rmpath('/usr/local/matlab/mytools')

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