path
View or change search path
Description
path
displays the MATLAB®search path, which is stored inpathdef.m
.
p = path(___)
returns the MATLAB search path as a character vector. You can use this syntax with any of the input argument combinations in the previous syntaxes.
Examples
Input Arguments
Alternative Functionality
As an alternative to thepath
function, use the Set Path dialog box. To open the Set Path dialog box, on theHometab, in theEnvironmentsection, clickSet Path.
You can also use theaddpath
function to add multiple folders to the search path.
See Also
addpath
|matlabroot
|pathtool
|rehash
|restoredefaultpath
|rmpath
Introduced before R2006a