Package: coder
Superclasses: coder.ArrayType
Represent set of MATLAB structure arrays
Specifies the set of structure arrays that the generated code
should accept. Use only with the fiaccel
args
option.
Do not pass as an input to a generated MEX function.
t=coder.typeof(
creates
a struct_v
)coder.StructType
object for a structure with the
same fields as the scalar structure struct_v
.
t=coder.typeof(
returns
a modified copy of struct_v
, sz
, variable_dims
)coder.typeof(struct_v)
with
(upper bound) size specified by sz
and variable
dimensions variable_dims
. 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. When sz
is
[], the (upper bound) sizes of struct_v
remain
unchanged. If the variable_dims
input parameter
is not specified, the dimensions of the type are assumed to be fixed
except for those that are unbounded. When variable_dims
is
a scalar, it is applied to the bounded dimensions that are not 1
or 0
(which
are assumed to be fixed).
creates
a t
=coder.newtype('struct', struct_v
, sz
, variable_dims
)coder.StructType
object for an array of structures
with the same fields as the scalar structure struct_v
and
(upper bound) size sz
and variable dimensions variable_dims
.
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. When variable_dims
is
not specified, the dimensions of the type are assumed to be fixed
except for those that are unbounded. When variable_dims
is
a scalar, it is applied to the dimensions of the type, except if the
dimension is 1
or 0
, which is
assumed to be fixed.

Scalar structure used to specify the fields in a new structure type. 

Size vector specifying each dimension of type object. Default: [1 1] for 

Logical vector that specifies whether each dimension is variable size (true) or fixed size (false). Default: false(size(sz))  sz==Inf for 

The runtime memory alignment of structures of this type in bytes. If you have an Embedded Coder^{®} license and use Code Replacement Libraries (CRLs), the CRLs provide the ability to align data objects passed into a replacement function to a specified boundary. This capability allows you to take advantage of targetspecific function implementations that require data to be aligned. By default, the structure is not aligned on a specific boundary so it will not be matched by CRL functions that require alignment.


Class of values in this set. 

Whether the structure type is externally defined. 

A structure giving the 

If the structure type is externally defined, name of the header
file that contains the external definition of the structure, for example, By default, the generated code contains Must be a nonempty character vector. 

The upperbound size of arrays in this set. 

A vector used to specify whether each dimension of the array
is fixed or variable size. If a vector element is 
Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB documentation.
Create a type for a structure with a variablesize field.
x.a = coder.typeof(0,[3 5],1); x.b = magic(3); coder.typeof(x) % Returns % coder.StructType % 1x1 struct % a: :3x:5 double % b: 3x3 double % ':' indicates variablesize dimensions
Create a coder.StructType
object that uses
an externallydefined structure type.
Create a type that uses an externallydefined structure type.
S.a = coder.typeof(double(0)); S.b = coder.typeof(single(0)); T = coder.typeof(S); T = coder.cstructname(T,'mytype','extern','HeaderFile','myheader.h');
T = coder.StructType 1x1 extern mytype (myheader.h) struct a: 1x1 double b: 1x1 single
View the types of the structure fields.
T.Fields
ans = a: [1x1 coder.PrimitiveType] b: [1x1 coder.PrimitiveType]
coder.ArrayType
 coder.Constant
 coder.EnumType
 coder.FiType
 coder.newtype
 coder.PrimitiveType
 coder.resize
 coder.Type
 coder.typeof
 fiaccel