rmpath

Updates the search path for functions by removing the given directories d, ... from the existing path R.

Syntax

R = rmpath (d,...)

R = rmpath ('d1; d2; d3; ...')

Inputs

d,...
Directories to be removed from the search path. The directories must exist. An absolute path is not needed if directories are nested in the currennt directory.
Type: string
'd1; d2; d3; ...'
Multiple directories can be specified in the same string by using a semicolon(;) as the delimiter.
Type: string

Outputs

R
Updated search path for functions.
Type: string.

Examples

Remove directory from the search path:

R = rmpath('Functions')
R = Tests;C:/Users/Default/TestScripts;C:/Program Files/Toolboxes
Remove multiple directories, specified in a single string, from the search path:
R = rmpath('Tests; C:/Users/Default/TestScripts')
R = C:/Program Files/Toolboxes

Comments

Multiple directories can be specified in the same input string using the syntax d1; d2; d3; ..., where a semicolon is used as the delimiter for directories. A warning is returned if one or more of the given directories d, ... are not in the current search path.