Documentation Center    • Trial Software   • Product Updates
Evaluate function   [y1, y2, ...] = feval(fhandle, x1, ..., xn)
[y1, y2, ...] = feval(fname, x1, ..., xn)   [y1, y2, ...] =
feval(fhandle, x1, ..., xn) evaluates the function handle,
fhandle, using arguments x1 through xn. If the function handle
is bound to more than one built-in or .m function, (that is, it
represents a set of overloaded functions), then the data type of
the arguments x1 through xn determines which function is
dispatched to.      Note   It is not necessary to use feval to
call a function by means of a function handle. This is explained
in Calling a Function Using Its Handle in the MATLAB®
Programming Fundamentals documentation.  [y1, y2, ...] =
feval(fname, x1, ..., xn). If fname is a quoted string
containing the name of a function (usually defined within file
having a .m file extension), then feval(fname, x1, ..., xn)
evaluates that function at the given arguments. The fname
parameter must be a simple function name; it cannot co