MATLAB Functions | Help Desk |
path
Control MATLAB's directory search path
path p = path path('newpath
') path(path,'newpath
') path('newpath
',path)
path
prints out the current setting of MATLAB's search path. On all platforms except the Macintosh, the path resides in pathdef.m
(in toolbox/local
). The Macintosh stores its path in the Matlab Settings File
(usually in the Preferences
folder).
p = path
returns the current search path in string variable p
.
path('newpath
')
changes the path to the string 'newpath'
.
path(path,'
newpath
')
appends a new directory to the current path.
path('newpath
',path)
prepends a new directory to the current path.
MATLAB has a search path. If you enter a name, such as fox
, the MATLAB interpreter:
fox
as a variable.
fox
as a built-in function.
fox.mex
and fox.m
.
path
for fox.mex
and fox.m
.
UNIX: | |
VMS: | |
MS-DOS: | |
Macintosh: |
addpath
Add directories to MATLAB's search path
cd
Change working directory
dir
Directory listing
rmpath
Remove directories from MATLAB's search path
what
Directory listing of M-files, MAT-files, and MEX-files