what

Purpose

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

Synopsis

what
what dirname

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.

Examples

The commands

what general
and

what matlab/general 
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, lookfor, path, which, who
    

    (c) Copyright 1994 by The MathWorks, Inc.