PATH

 

 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:

 

 

    Unix: path(P,'/home/myfriend/goodstuff')

    VMS:  path(P,'DISKS1:[MYFRIEND.GOODSTUFF]')

    DOS225HQXR:  path(P,'TOOLS\GOODSTUFF')

    Mac:  path(P,'Tools:GoodStuff')

 

 

  See also GETENV1V2LL75, WHAT1IQMSU2, CDM9OCU2, DIRMMUQU2.