Package: coder
Superclasses: coder.ArrayType
Represent set of MATLAB fixed-point arrays
Specifies the set of fixed-point array values that the generated
code should accept. Use only with the codegen
-args
options.
Do not pass as an input to the generated MEX function.
Note
You can also 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.
creates a t
=coder.typeof(v
)coder.FiType
object representing a set of
fixed-point values whose properties are based on the fixed-point input
v
.
returns
a modified copy of t
=coder.typeof(v
, sz
, variable_dims
)coder.typeof(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 unbounded and the dimension is variable
size. When sz
is [], the (upper bound) sizes of v
do
not change. If you do not specify the variable_dims
input
parameter, the bounded dimensions of the type are fixed. When variable_dims
is
a scalar, it applies to the bounded dimensions that are not 1
or 0
(which
are fixed).
creates
a t
=coder.newtype('embedded.fi',
numerictype, sz
, variable_dims
)coder.Type
object representing a set of fixed-point
values with numerictype
and (upper bound) sizes sz
and
variable dimensions variable_dims
. If sz
specifies inf
for
a dimension, then the size of the dimension is unbounded and the dimension
is variable size. When you do not specify variable_dims
,
the bounded dimensions of the type are fixed. When variable_dims
is
a scalar, it applies to the bounded dimensions that are not 1
or 0
(which
are fixed).
creates a t
=coder.newtype('embedded.fi',
numerictype, sz
, variable_dims
,
Name, Value)coder.Type
object representing a set of
fixed-point values with numerictype
and additional options specified
by one or more Name, Value pair arguments. Name
can also be a
property name and Value
is the corresponding value. Specify
Name
as a character vector or string scalar. You can specify
several name-value pair arguments in any order as
Name1,Value1,…,NameN,ValueN
.
|
Fixed-point value used to create new |
|
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 |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Set Default: false |
|
Specify local |
|
Class of values in the set. |
|
Indicates whether fixed-point arrays in the set are real ( |
|
Local |
|
numerictype that the fixed-point arrays in the set use. |
|
The upper-bound size of arrays in the set. |
|
A vector specifying 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.
Create a new fixed-point type t
.
t = coder.typeof(fi(1)); % Returns % coder.FiType % 1x1 embedded.fi % DataTypeMode:Fixed-point: binary point scaling % Signedness:Signed % WordLength:16 % FractionLength:14
Create a new fixed-point type for use in code generation. The
fixed-point type uses the default fimath
.
t = coder.newtype('embedded.fi',numerictype(1, 16, 15), [1 2]) t = % Returns % coder.FiType % 1x2 embedded.fi % DataTypeMode: Fixed-point: binary point scaling % Signedness: Signed % WordLength: 16 % FractionLength: 15
This new type uses the default fimath
.
codegen
| coder.ArrayType
| coder.ClassType
| coder.newtype
| coder.resize
| coder.Type
| coder.typeof