Input Specification
Functions
coder.typeof | Create coder.Type object to represent the type
of an entry-point function input |
coder.resize | Resize coder.Type object |
coder.newtype | Create coder.Type object to represent type of an entry-point
function input |
coder.varsize | Resolve size mismatch errors and declare upper bounds |
coderTypeEditor | Launch the Coder Type Editor dialog box (Since R2020a) |
Classes
coder.ArrayType | Represent set of MATLAB arrays acceptable for input specification |
coder.CellType | Represent set of MATLAB cell arrays |
coder.ClassType | Represent set of MATLAB classes acceptable for input specification |
coder.Constant | Specification of constant value for code generation |
coder.EnumType | Represent set of MATLAB enumerations acceptable for input specification |
coder.FiType | Represent set of MATLAB fixed-point arrays acceptable for input specification |
coder.PrimitiveType | Represent set of logical, numeric, or character arrays acceptable for input specification |
coder.StructType | Represent set of MATLAB structure arrays acceptable for input specification |
coder.Type | Represent set of MATLAB values acceptable for input specification |
Topics
- Specify Properties of Entry-Point Function Inputs
Specify input types so that the code generator can determine the types of all variables.
- Define Input Properties at the Command Line
Specify entry-point function input type by using the
-args
option. - Define Input Properties Programmatically in MATLAB File
Using the assert function to define primary function input properties.
- Create and Edit Input Types by Using the Coder Type Editor
Define and edit
coder.Type
objects interactively. - Define Cell Array Inputs
Choose how you want to specify cell array inputs.
- Specify Cell Array Inputs at the Command Line
Provide an example cell array, define a cell array type, or specify a cell array constant input.
- Specify Global Cell Arrays at the Command Line
Specify global cell array inputs with the
-globals
option. - Specify Objects as Inputs
Use the
fiaccel
-args
option to specify the type of a value class input. - Specify String Scalar Inputs at the Command Line
Specify string scalar inputs at the command line.
- Generate C Code from Code Containing Global Data
Describes how to compile functions that use global data and how to synchronize global data with MATLAB.
- Define Input Properties Programmatically in MATLAB File
Using the assert function to define primary function input properties.