Package: coder
Superclasses: coder.Type
Represent set containing one MATLAB value
Use a coder.Constant object to define values
that are constant during code generation. Use only with the codegen -args options.
Do not pass as an input to a generated MEX function.
const_type=coder.Constant( creates
a v)coder.Constant type from the value v.
codegen -globals {'g', coder.Constant( creates
a constant global variable v)}g with the value v.
const_type=coder.newtype('constant', v) creates
a coder.Constant type from the value v.
|
Constant value used to construct the type. |
|
The actual value of the constant. |
Value. To learn how value classes affect copy operations, see Copying Objects (MATLAB).
You cannot use coder.Constant on sparse matrices, or
on structures, cell arrays, or classes that contain sparse matrices.