whatwhatdirname
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.
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:
matlab/general MATLAB.GENERAL MATLAB\GENERAL MATLAB:Generaldir,lookfor,path,which,who
(c) Copyright 1994 by The MathWorks, Inc.