Installation guide

File Management Operations
File Management Operations
In this section...
“About MATLAB File Operations” on page 5-35
“Current D irectory Field” on page 5-35
“Current Directory Brow ser” on page 5-36
“Viewing and Making Changes to Directories” on page 5-38
“Creating, Renaming, Copying, and Removing Directories and Files” on
page 5-43
“Opening and Running Files” on page 5-47
“Finding Files and Content Within Files” on page 5-49
“Comparing Files” on page 5-54
“Accessing Source Control Features” on page 5-54
“Preferences for the C urrent Directory Browser” on page 5-54
Note You generally cannot perform operations on files and directories for
which you do not h ave prope r permission. For example, you cannot copy a file
to a read-only directory using the Current Directory browser, h owever, you
candosousing
movefile with the appropriate option.
AboutMATLABFileOperations
MATLAB file operations use the current directory and the M ATLAB search
path as reference points. Any file you want to run m ust either be in the
current directory or on the search path. The key tools for performing file
operations are
Current Directory Field
A quick way to view or change the current directory is by using the current
directory field in the desktop toolbar.
5-35