Main Content

removeParameterConstraintRule

Class: Simulink.Mask.Constraints
Namespace: Simulink.Mask

Delete a mask parameter constraint rule

Syntax

paramConstraint.removeParameterConstraintRule(RuleIndex)

Description

paramConstraint.removeParameterConstraintRule(RuleIndex) deletes the specified constraint rule from a mask parameter constraint.

Input Arguments

expand all

Handle to mask parameter constraint of which you want to remove constraint rule, specified as an object.

Data Types: char | cell

Index number of the mask constraint rule, specified as an integer.

Examples

% Get block mask handle.
maskObj = Simulink.Mask.get(gcb); 

% Get mask constraint handle.
paramConstraint = maskObj.getParameterConstraint('const3');

% Remove mask constraint rule.
paramConstraint.removeParameterConstraintRule(1)

Version History

Introduced in R2018a