MATLAB Functions Help Desk

what

Purpose

Directory listing of M-files, MAT-files, and MEX-files

Syntax

Description

what by itself, lists the M-files, MAT-files, and MEX-files in the current directory.

what dirname lists the files in directory dirname on MATLAB's search path. It is not necessary to enter the full pathname of the directory. The last component, or last couple of components, is sufficient. Use what class or what dirname/private to list the files in a method directory or a private directory (for the class named class).

Examples

The statements

and

both list the M-files in the general directory. The syntax of the path depends on your operating system:

UNIX:

matlab/general

VMS:

MATLAB.GENERAL

MS-DOS:

MATLAB\GENERAL

Macintosh:

MATLAB:General

See Also

dir         Directory listing

lookfor     Keyword search through all help entries

path        Control MATLAB's directory search path

which       Locate functions and files

who         List directory of variables in memory



[ Previous | Help Desk | Next ]