addParameterCondition
Syntax
constraintObj.addParameterCondition(pc)
constraintObj.addParameterCondition(Name=Value)
Description
constraintObj.addParameterCondition(
and
pc
)constraintObj.addParameterCondition(
creates mask parameter conditions on the constraint using the name-value arguments. Name=Value
)
Input Arguments
Examples
Create an instance of Simulink.Mask.PortConstraint
.
consObj = Simulink.Mask.PortConstraint
Add the parameter condition.
consObj.addParameterCondition('Name','p1','Values',{'10','20'})
ans = ParameterCondition with properties: Name: 'p1' Values: {2×1 cell}
Version History
Introduced in R2022a