
Search Path
• “Viewing the Search Path” on page 5-27
• “A dding Directories to the Search Path” on page 5-27
• “M oving Directories Within the Search Path” on page 5-28
• “R emov ing Directories from the Search Path” on page 5-29
• “R estoring the Default Search Path” on page 5-30
• “R everting to the Previous Path” on page 5-30
• “Saving Settings to the Path” on page 5-30
See also
• “About the Search Path” on page 5-23
• “Using the Path in Future Sessions” on page 5-31
• “R ecov ering from Problems with the Search Path” on p age 5-33
Viewing the Search Path
The MATLAB search path field in the Set Path dialog box lists all of th e
directories on the search path. The top of the list is the start of the search
path, while the bottom of the list is the end.
Function Alternative. Use the
path function to view the search path.
Adding Directories to the Search Path
Add directories to the search p ath w he n you want to run M-files in those
directories.
To add directories to the MATLAB search path using the Set Path dialog box,
1 Click Add Folder or Add with Subfolders.
• If you want to add only the selected directory but do not want to add all
of its subdirectories, click Add Folder.
• If you want to add the selected directory and all of its subdirectories,
click Ad d with Subfolders.
5-27
Comentários a estes Manuais