addConstant
Add constant to Architectural Data section of Simulink data dictionary
Since R2023b
Syntax
Description
adds a constObj
= addConstant(archDataObj
,constName
)Simulink.dictionary.archdata.Constant
object with the specified name
constName
to the Architectural Data section specified by
archDataObj
and returns a
Simulink.dictionary.archdata.Constant
object that represents the
constant.
adds a constObj
= addConstant(archDataObj
,constName
,constValue=value
)Simulink.dictionary.archdata.Constant
object with the specified value to the
data dictionary and returns a Simulink.dictionary.archdata.Constant
object
that represents the constant.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023b