
File Management Operations
Adding Directories to the MATLAB Search Path
From the Current Directory browser, you can add directories to t he M ATLAB
search path. Right-click and from the context menu, select Add to Path.
Then select one of t he optio n s:
• Current Directory — Adds the current directory to the path.
• S elected Folders — Adds the directories selected in the Current Directory
browser to the path.
• S elected Folder and Subfolders — Adds the directory selected in the
Current Directory browser to the path, and adds all of its subdire ctories
to the path.
Creating, Renaming, Copying, and Removing
Directories and Files
• “G eneral N ote s” on page 5-43
• “Creating New Files” on page 5-44
• “C reating New Directories” on page 5-44
• “R enaming Files and D irectories” on page 5-45
• “C utting or Deleting Files and D irectories” on page 5-45
• “Copying and Pasting Files and Directories” on page 5-46
General Notes
If you have write permission, y ou can create, copy, remove, and renam e
MATLAB related files and directories for the directory shown in the Current
Directory browser. If you do not h ave write permission, you can still copy files
and directories to another directory, or you can use equiva lent functions,
such as
movefile.
To run functions whose arguments require the use of a pathname or filename,
use the function form rather than the unquoted or command form of the
syntax when the pathname or filename includes spaces. For example, the
command form
delete my file.m
5-43
Commentaires sur ces manuels