Simulink.Mask.Constraints class

Package: Simulink.Mask

Create Mask Constraint

Description

Use an instance of the Simulink.Mask.Constraint to add or remove a parameter constraint rule.

Properties

DataType

Specifies the data type associated with the constraint rule.

Type: double, single, numeric, integer, int8, uint8, int16, uint16, int32, uint32, boolean, enum, fixdt, string

Default: Empty

Dimension

Specifies the dimension associated with the constraint rule.

Type: scalar, rowvector, columnvector, 2dmatrix, ndmatrix

Default: Empty

Complexity

Specifies the complexity associated with the constraint rule.

Type: real, complex

Default: Empty

Sign

Specifies the sign associated with the constraint rule.

Type: positive, negative, zero

Default: Empty

Finiteness

Specifies the finiteness associated with the constraint rule.

Type: finite, inf, -inf, NaN

Default: Empty

Range

Specifies the range associated with the constraint rule.

Type: Minimum, Maximum

Default: Empty

CustomConstraint

Specifies the custom constraint associated with the constraint rule.

Type: Valid MATLAB expression

Default: Empty

CustomErrorMessage

Specifies the custom error message associated with the custom constraint rule.

Type: Character vector

Default: Empty

Methods

addParameterConstraintRuleAdd rules to a parameter constraint
removeParameterConstraintRuleDelete a mask parameter constraint rule

Introduced in R2018a