Thursday, August 13, 2009

functions

Return information about a function handle

Syntax

  • f = functions(funhandle)

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]

1 comment:

  1. Apple Watch Stainless Steel vs Titanium
    Stainless Steel vs titanium, but titanium curling wand not the best titanium sheet metal titanium? The stainless steel has a head which is slightly slimmer than titanium dioxide the stainless titanium hoop earrings steel, babyliss nano titanium which is a bit

    ReplyDelete