target.Function - Provide function signature information - MATLAB (original) (raw)

Main Content

Namespace: target

Provide function signature information

Since R2020b

Description

Use the target.Function class, which inherits functionality fromtarget.Data, to provide function signature information.

To create a target.Function object, use the target.create function.

Properties

expand all

Data type of value that the associated function returns.

Attributes:

GetAccess public
SetAccess public

Name of function.

Attributes:

GetAccess public
SetAccess public

Examples

collapse all

Create the function signature for a timer by using thetarget.Function class.

Create the signature for a function that returns the data type uint64 and the function name timestamp_x86.

timerSignature = target.create('Function'); timerSignature.Name = 'timestamp_x86'; timerSignature.ReturnType = 'uint64';

Version History

Introduced in R2020b