Documentation

rmpath

Remove folders from search path

Description

example

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

Examples

collapse all

Remove/usr/local/matlab/mytoolsfrom 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 forfolderName.

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 specifyc:\matlab\..\work, MATLAB removes the folderc:\workfrom the path.

Data Types:char|string

Introduced before R2006a