[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
- computer /tools/hpmatlab/toolbox/matlab/elmat/computer.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- nargout /tools/hpmatlab/toolbox/matlab/elmat/nargout.m
This function is called by
- info /tools/hpmatlab/toolbox/matlab/general/info.m
- ver /tools/hpmatlab/toolbox/matlab/general/ver.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON