MATLAB Function Reference | ![]() ![]() |
Return information about a function handle
Syntax
Description
f = functions(funhandle)
returns, in a MATLAB structure, the function name, type, filename, and other information for the function handle stored in the variable, funhandle
.
Note
The functions function is provided for querying and debugging purposes. Its behavior may change in subsequent releases, so it should not be relied upon for programming purposes.
|
Remarks
For handles to functions that overload one of the MATLAB classes, like double
or char
, the structure returned by functions
contains an additional field named methods
. The methods
field is a substructure containing one fieldname for each MATLAB class that overloads the function. The value of each field is the path and name of the file that defines the method.
Examples
To obtain information on a function handle for the deblank
function,
f = functions(@deblank) f = function: 'deblank' type: 'overloaded' file: 'matlabroot\toolbox\matlab\strfun\deblank.m' methods: [1x1 struct]
See Also
![]() | function_handle (@) | funm | ![]() |