MATLAB Function Reference | Search  Help Desk |
addpath | Examples See Also |
Add directories to MATLAB's search path
addpath('
directory
')
addpath('
dir1
','
dir2
','
dir3
',...)
addpath(...,'-
flag'
)
addpath ('
directory
')
prepends the specified directory to MATLAB's current search path.
addpath ('
dir1
','
dir2
','
dir3
',...)
prepends all the specified directories to the path.
addpath (...,'-
flag'
)
either prepends or appends the specified directories to the path depending the value of flag
:
0 or begin |
Prepend specified directories |
1 or end |
Append specified directories |
path MATLABPATH c:\matlab\toolbox\general c:\matlab\toolbox\ops c:\matlab\toolbox\strfun addpath('
c:\matlab\myfiles'
) path MATLABPATH c:\matlab\myfiles c:\matlab\toolbox\general c:\matlab\toolbox\ops c:\matlab\toolbox\strfun
path
Control MATLAB's directory search path
rmpath
Remove directories from MATLAB's search
path