Development Environment |
Adding Directories to the Search Path
To add directories to the MATLAB search path using the Set Path dialog box:
You cannot add method directories (directories that start with @) or private directories directly to the search path. Instead, add their parent directories.
Adding Directories to the Path from the Current Directory Browser. In the Current Directory browser, select the directory, right-click, and select Add to Path from the context menu.
Function Alternative. To add directories to the search path, use addpath
. The addpath
function offers an option to get the path as a string and to concatenate multiple strings to form a new path.
You can include addpath
in your startup
M-file to automatically modify the path when MATLAB starts.
Viewing the Search Path | Moving Directories Within the Search Path |