addpath
Add directories to functions search path.
📝Syntax
addpath(dirname)
addpath(dirname, ..., dirname)
addpath(dirname, ..., dirname, '-begin')
addpath(dirname, ..., dirname, '-end')
addpath(dirname, ..., dirname, '-frozen')
previous = addpath(dirname)
previous = addpath(dirname, ..., dirname)
previous = addpath(dirname, ..., dirname, '-begin')
previous = addpath(dirname, ..., dirname, '-end')
📥Input Arguments
Parameter Description
dirname a string: a directory
'-end' or '-begin' append dirname at the end or begin of the list.
'-frozen' disables folder change detection for the folders being added or modified.
📤Output Arguments
Parameter Description
previous returns previous path before adding
📄Description

addpath add directories to search path.

It is also possible to add lists of directory names separated by pathsep.

Non-existent path will not be added and a warning will be issued.

files watchers is disabled for internal modules.

💡Examples
path()
addpath(tempdir())
path
rmpath(tempdir())
path
🔗See Also
pathrmpathrestoredefaultpath
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub