Main Content

removeAllPortConstraints

Remove all port constraints on masked block

Syntax

aMaskObj.removeAllPortConstraints()

Description

aMaskObj.removeAllPortConstraints() removes all the port constraints from the masked block.

Examples

amaskObj=Simulink.Mask.get(model1/subsystem)
amaskObj.removeAllPortConstraints()
amaskObj.getPortConstraint('pc1')
Constraints 'pc1' is not available in the block 'model1/Subsystem'.

Version History

Introduced in R2022a