coder.StructType Class
Namespace: coder
Superclasses: coder.ArrayType
Represent set of MATLAB structure arrays acceptable for input specification
Description
Objects of coder.StructType
specify the structure arrays that the generated
code should accept. Use objects of this class only with the -args
option of
the fiaccel
command. Do not pass as an input to a generated MEX function.
Creation
t = coder.typeof(
creates a structV
)coder.StructType
object for a structure with the same fields as the
scalar structure struct_v
.
t = coder.typeof(
creates a structV
,sz
,variableDims
)coder.StructType
with upper bound sizes specified by
sz
and variable dimensions indicated by variableDims
.
If sz
specifies Inf
for a dimension, then the size of
the dimension unbounded and variable size. When sz
is
[]
, the upper bound sizes of structV
remain unchanged.
If you do not specify the variableDims
, the bounded dimensions of the type
are fixed. When variableDims
is a scalar, this function applies this value
to the bounded dimensions that are not 1
or 0
, which are
fixed.
creates a t
= coder.newtype('struct',structV
,sz
,variableDims
)coder.StructType
object for an array of structures
with the same fields as the scalar structure structV
and upper bound size
sz
and variable dimensions indicated in variableDims
.
If sz
specifies Inf
for a dimension, then the size of
the dimension is assumed to be unbounded and the dimension is assumed to be variable sized. If
you do not specify the variableDims
, the bounded dimensions of the type are
fixed. When variableDims
is a scalar, this function applies this value to
the bounded dimensions that are not 1
or 0
, which are
fixed.
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.
Input Arguments
Properties
Examples
Version History
Introduced in R2011a
See Also
coder.ClassType
(MATLAB Coder) | coder.Type
| coder.PrimitiveType
| coder.EnumType
| coder.FiType
| coder.Constant
| coder.ArrayType
| coder.newtype
| coder.typeof
| coder.resize
| fiaccel