Main Content
addParameterConstraintRule
Class: Simulink.Mask.Constraints
Namespace: Simulink.Mask
Add rules to a parameter constraint
Syntax
paramConstRule = paramConstraint.addParameterConstraintRule(Name,Value)
Description
adds rule to a parameter constraint.paramConstRule
= paramConstraint.addParameterConstraintRule(Name,Value
)
Input Arguments
Output Arguments
Examples
% Get mask constraint handle paramConstraint = maskObj.getParameterConstraint('const3'); % Add rules to the constraint. paramConstRule = paramConstraint.addParameterConstraintRule(... 'DataType','int8')
ans = ParameterConstraintRules with properties: DataType: 'int8' Dimension: {0×1 cell} Complexity: {0×1 cell} Sign: {0×1 cell} Finiteness: {0×1 cell} Minimum: '' Maximum: '' CustomConstraint: ''
Version History
Introduced in R2018a