Main Content

coder.ArrayType Class

Namespace: coder
Superclasses: coder.Type

Represent set of MATLAB arrays acceptable for input specification

Description

Objects of the coder.ArrayType class specify array types that the generated code accepts. Use objects of this class only with the -args option of the codegen function. Do not pass as an input to a generated MEX function.

Creation

Note

You can create and edit coder.Type objects interactively by using the Coder Type Editor. See Create and Edit Input Types by Using the Coder Type Editor.

coder.ArrayType is an abstract class. You cannot create instances of this class directly. You can create coder.EnumType, coder.FiType, coder.PrimitiveType, and coder.StructType objects that derive from this class.

Properties

expand all

Value class name, specified as one of these class object names.

  • coder.EnumType

  • coder.FiType

  • coder.PrimitiveType

  • coder.StructType

Upper bound on array size, specified as a positive integer.

Option to specify whether each dimension of the array has a variable size specified as a boolean vector. A value of 1 indicates that the dimension has variable-size. A value of 0 indicates that the dimension has fixed-size

Version History

Introduced in R2011a