Main Content

Simulink.Mask.PortConstraintRule Class

Create instance of Simulink.Mask.PortConstraintRule to define rules of port constraint

Since R2022a

Description

Define the DataType, Dimension, and Complexity rules for a port constraint. Port signal values are validated against these rules.

Properties

expand all

Permitted data types, specified as a cell array. The allowed values are int, double, fixed point and so on.

Data Types: string

The allowed values in the array are scalar, vector, 2dmatrix, ndmatrix, rowvector, and colvector.

Data Types: cell

The allowed complexity, specified as a cell array. The allowed values in the array are real and complex.

Set the Signedness, bias, Wordlength, and Scaling for fixed point data type.

Version History

Introduced in R2022a