Main Content
addPortConstraintAssociation
Class: Simulink.Mask
Namespace: Simulink
Syntax
aMaskObj.addPortConstraintAssociation(name, port identifiers)
Description
aMaskObj.addPortConstraintAssociation(
associates specified port constraint to the specified port identifiers. You can associate
multiple port identifiers to the same port constraint.name, port identifiers
)
Input Arguments
Examples
% Get a mask object aMaskObj = Simulink.Mask.get(gcb); aMaskObj.PortIdentifiers; aMaskObj.addPortConstraintAssociation('pc3',{'pi_1'});
Version History
Introduced in R2022a