Main Content
coder.mustBeConst
Syntax
Description
coder.mustBeConst(
validates that the
function input value
)value
is a constant during code generation, also
referred to as a compile-time constant in this context. During code
generation, this function throws an error if value
is not a
compile-time constant. During MATLAB® execution, this function has no
effect.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2023b
See Also
codegen
(MATLAB Coder)