[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/general]

path

(/tools/hpmatlab/toolbox/matlab/general/path.m)


Function Synopsis

p = path(a,b)

Help text

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]')
	  DOS:  path(P,'TOOLS\GOODSTUFF')
	  Mac:  path(P,'Tools:GoodStuff')

	See also GETENV, WHAT, CD, DIR.

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON