lookfor
topic
lookfor xyz
looks for the string xyz
in the first comment line (the H1 line) of the help text in all M-files found on MATLAB's search path. For all files in which a match occurs, lookfor
displays the H1 line.
finds at least a dozen matches, including H1 lines containing "inverse hyperbolic cosine", "two-dimensional inverse FFT", and "pseudoinverse." Contrast this withlookfor
inverse
which inverse
or
These commands run more quickly, but probably fail to find anything because MATLAB does not ordinarily have a functionwhat
inverse
inverse
.
In summary, what
lists the functions in a given directory, which
finds the directory containing a given function, and lookfor
finds all functions in all directories that might have something to do with a given keyword.
dir
,help
,what
,which
,who
(c) Copyright 1994 by The MathWorks, Inc.