Development Environment    

Viewing and Making Changes to Directories

The ways to view and make changes to directories are:

Changing the Current Working Directory and Viewing Its Contents

To change the current directory, type the directory name in the pathname edit box in the Current Directory browser, and press the Enter or Return key. That directory becomes the current working directory and the files and subdirectories in it are listed.

To view a directory that has recently been displayed, click the down arrow at the right side of the pathname edit box in the Current Directory browser. The previously displayed directories are listed, sorted by most recent to least recent. Select an entry to view the contents of that directory. You can clear the list and set the number of directories saved in the list - see Preferences for the Current Directory Browser.

To view the contents of a subdirectory within the directory being displayed, double-click the subdirectory in the Current Directory browser, or select the subdirectory and press the Enter or Return key. You can also right-click on that subdirectory and select Open from the context menu.

To move up one level in the directory structure, click the up button in the Current Directory browser toolbar, or press the Back Space key. Note that you cannot access the top level of a UNC pathname.

Function Alternative.   Use dir to view the contents of the current working directory or another specified directory.

Use what to see only the MATLAB related files in a directory. With no arguments, what displays the MATLAB related files in the current working directory. Use which to display the pathname for the specified function.


 Current Directory Browser Adding Directories to the MATLAB Search Path