Documentation

Input Specification

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

Functions

coder.typeof Convert MATLAB value into its canonical type
coder.resize Resize a coder.Type object
coder.newtype Create a coder.Type object
coder.varsize Declare variable-size array

Classes

coder.ArrayType Represent set of MATLAB arrays
coder.CellType Represent set of MATLAB cell arrays
coder.Constant Represent set containing one MATLAB value
coder.EnumType Represent set of MATLAB enumerations
coder.FiType Represent set of MATLAB fixed-point arrays
coder.PrimitiveType Represent set of logical, numeric, or char arrays
coder.StructType Represent set of MATLAB structure arrays
coder.Type Represent set of MATLAB values

Examples and How To

Define Input Properties Programmatically in MATLAB File

Using the assert function to define primary function input properties

Define Input Properties by Example at the Command Line

Specify entry-point function input properties with the -args option.

Specify Variable-Size Inputs at the Command Line

Specify data whose size might change at run time.

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 Constant Inputs at the Command Line

Specify a constant input by using -args with coder.Constant.

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

Concepts

Primary Function Input Specification

Specify properties of entry-point function inputs.

Was this topic helpful?