MATLAB Function Reference    
functions

Return information about a function handle

Syntax

Description

f = functions(funhandle) returns, in a MATLAB structure, the function name, type, and filename for the function handle stored in the variable, funhandle. For overloaded functions, it also returns a separate structure identifying the classes and M-files that overload the function.

f = functions(@fun) returns the same information for the function, fun.

Examples

To obtain information on a function handle for the display function,

The methods field is a separate structure containing one fieldname for each class that overloads the function. The value of each field is the path and name of the file that defines the method.

See Also

function_handle


 function_handle (@) funm