Input Specification

Input type, size, variable-size, complexity, constants, global variables

Functions

coder.typeofCreate coder.Type object to represent the type of an entry-point function input
coder.resizeResize coder.Type object
coder.newtypeCreate a coder.Type object to represent the type of an entry-point function input
coder.varsizeDeclare variable-size data
coderTypeEditorLaunch the Coder Type Editor dialog

Classes

coder.ArrayTypeRepresent set of MATLAB arrays
coder.CellTypeRepresent set of MATLAB cell arrays
coder.ClassTypeRepresent set of MATLAB classes
coder.ConstantRepresent set containing one MATLAB value
coder.EnumTypeRepresent set of MATLAB enumerations
coder.FiTypeRepresent set of MATLAB fixed-point arrays
coder.PrimitiveTypeRepresent set of logical, numeric, or char arrays
coder.StructTypeRepresent set of MATLAB structure arrays
coder.TypeRepresent set of MATLAB values

Topics

Specify Properties of Entry-Point Function Inputs

Specify input properties so that the code generator can determine the properties of all variables.

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.

Define String Scalar Inputs

Choose how you want to specify string scalar inputs.

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.