Main Content
removeRule
Remove all datatype, complexity, and dimension attributes of port constraint rule
Since R2022a
Syntax
consObj.removeRule()
Description
consObj.removeRule()
clears all the data type, complexity,
and dimension attributes of the port constraint rule. The empty rule object is still available
in the port constraint object.
Examples
consObj=Simulink.Mask.PortConstraint; rule = Simulink.Mask.PortConstraintRule; pc1.DataType = {'double','int32'}; pc1.complexity = {'real'}; consObj.setRule(rule); consObj.removeRule();
Version History
Introduced in R2022a