%WHICH  Locate functions and files.
%   WHICH FUN displays the full pathname of the function with the name
%   FUN.  Variables in the workspace, built-in functions, loaded
%   Simulink models, or methods in Java classes display a message
%   indicating that FUN is a variable, built-in function, a Simulink
%   model, or a method in one or more Java classes.  WHICH only finds
%   the methods of those Java classes that are on the classpath.
%
%   WHICH FUN -ALL  displays the paths to all functions with the name
%   FUN.  The first one in the list is the one that would be normally
%   returned by WHICH.  The others are either shadowed or can be
%   executed in special circumstances.  The -ALL flag can be used with
%   all forms of WHICH.
%
%   WHICH FILE.EXT displays the full pathname of the specified file.
%
%   WHICH FUN1 IN FUN2 displays the pathname to function FUN1 in the
%   context of the m-file FUN2.  While debugging FUN2, WHICH FUN1 does
%   the same thing.  You can use this to determine if a subfunction or
%   private version of a function is being called instead of a
%   function on the path.
%
%   WHICH FUN(A,B,C) displays the path to the given function with the
%   given input arguments.  For example, which feval(g), when
%   g=inline('sin(x)'), indicates that inline/feval.m would be invoked.
%   which toLowerCase(s), when s=java.lang.String('my Java string'),
%   indicates that the toLowerCase method in class java.lang.String
%   would be invoked.
%
%   S = WHICH(...) returns the results of WHICH in the string S
%   instead of printing it to the screen.  S will be the string
%   'built-in' or 'variable' for built-in functions or variables in
%   the workspace. You must use the functional form of WHICH when
%   there is an output argument.
%
%   W = WHICH(...,'-all') returns the results of the multiple search
%   version of WHICH in the cell array W.  W will contain the path
%   strings normally printed to the screen.
%
%   See also DIR, HELP, WHO, WHAT, EXIST, LOOKFOR.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 5.16 $  $Date: 2000/06/01 01:25:43 $
%   Built-in function.
