Installation guide

5 Workspace, Search Path, and File Operations
Viewing and Maki
ng Changes to Directories
You can change th
e current directory, view its contents, add directories to the
MATLAB search pa
th, and change the way the Current Directory browser
presents entrie
s.
“Changing the C
urrent Working Directory and Viewing Its Contents” on
page 5-38
“Searching in t
he Current Directory Browser” on page 5-38
“Changing the D
isplay” on page 5-41
“A dding Direct
oriestotheMATLABSearchPath”onpage5-43
Changing the Current Working Directory and Viewing Its
Contents
To change the current directory, use the current directory field. The Current
Directory browser lists the files a nd directories in the current directory.
To view the contents of a subdirectory, double-click it, or select the
subdirectory and press Enter or Return.
To move up one level in the directory structure, press the backspace (<-)key.
Function Alternative. Use
dir to view the contents of the current working
directory or another specified d irectory. Use a return argument with
dir to
get a structure containing information including the names of the files in the
directory and their last modified date and time.
Use
what with no arguments to display the M ATLAB related files in the
current working directory. Use
which to display the pathname for a specified
function. U se
exist to see if a directory or file exists. Use fileattrib to see
or set file attributes, m uch like
attrib in DOS or chmod in UNIX.
Searching in the Current Director y Browser
Yo u can search the Current Directory browser for files and directories by
typing directly in the window. As you type the Current Directory browser
searches downward from the top of the w indow to find an entry that matches
what you have typed. For example:
5-38