coder.FunctionSignature
R2026bDescription
Note
Using a MATLAB® class as an entry point for code generation is a tech preview. This
feature is in active development and might change between the tech preview and the
general release. To enable the feature, enter
enableCodegenForEntryPointClasses at the command line before
launching the MATLAB
Coder™ app, calling the codegen function, or creating a coder.Type object. To provide feedback, email the
development team or participate
in a survey.
Use a coder.FunctionSignature object to specify an entry-point
function or a method of an entry-point class.
To generate code for coder.FunctionSignature object:
If the function signature object specifies an entry-point function, pass the function signature object to the
codegencommand by using the-functionoption.If the function signature object specifies a method of an entry-point class, pass the class signature object that represents the entry-point class to the
codegencommand by using the-classoption.
Creation
To create a coder.FunctionSignature object, use the
coder.FunctionSignature function. Alternatively, the code generator creates
this object when you:
Add a method to a
coder.ClassSignatureobject by using theaddMethodmethod.Add a method to a
coder.ClassSignatureobject by modifying the dictionary in theMethodsproperty.
Syntax
Description
specifies options using one or more name-value arguments. For example, to set the number
of output arguments to two, set fs = coder.FunctionSignature(___,Name=Value)Nargout to 2.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Examples
Version History
Introduced in R2026a