coder.EnumType Class
Namespace: coder
Superclasses: coder.ArrayType
Represent set of MATLAB enumerations acceptable for input specification
Description
Objects of the coder.EnumType class specify the MATLAB® enumerations that the generated code accepts. Use objects of this class only
with the -args option of the codegen command. Do not
pass as an input to a generated MEX function.
Creation
t = coder.typeof( creates a enumValue)coder.EnumType object that represents a set of enumeration values
of class enumValue.
t = coder.typeof(
creates a enumValue,sz,variableDims)coder.EnumType type object with upper bound sizes
sz and variable dimensions indicated in variableDims.
If sz specifies inf for a dimension, then the size of
the dimension is unbounded and the dimension has a variable size. When sz
is [], the upper bound sizes of v do not change. If you
do not specify variableDims, the bounded dimensions of the type are fixed
and the unbounded dimensions have a variable size. When variableDims is a
scalar, the function applies this value to bounded dimensions that are not
1 or 0, which are fixed.
t = coder.newtype(
creates a enumName,sz,variableDims)coder.EnumType object that has a variable size
with upper bound sizes sz and variable dimensions
variableDims. If sz specifies inf
for a dimension, then the size of the dimension is unbounded and the dimension has a variable
size. If you do not specify variableDims, the bounded dimensions of the
type are fixed. When variableDims is a scalar, the function applies this
value to bounded dimensions that are not 1 or 0, which
are fixed.
Input Arguments
Properties
Examples
Version History
Introduced in R2011a