Control MATLAB's directory search path.
PATH, by itself, prettyprints MATLAB's current search path.
The search path list originates as the environment variable
MATLABPATH in the underlying operating system, or is set by
MATLABRC, and is perhaps individualized by STARTUP.
P = PATH returns a string containing the path in P.
PATH(P) changes the path to P.
PATH(P1,P2) changes the path to the concatenation of the
two path strings P1 and P2. Thus PATH(PATH,P) appends
a new directory to the current path and PATH(P,PATH)
prepends a new path.
For example, the following statements add another directory
to MATLAB's search path on various operating systems:
DOS : path(P,'TOOLS\GOODSTUFF')
See also GETENV1V2LL75, WHAT , CD , DIR .