Main Content

Simulink.Mask.PortConstraintRule class

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

Description

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

Properties

expand all

Public Properties

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.

Methods

expand all

Version History

Introduced in R2022a