Main Content

removeConstraint

Class: Simulink.Mask.SharedConstraintFile
Namespace: Simulink.Mask

Remove specified constraint from XML file

Since R2023a

Description

Use an instance of Simulink.Mask.SharedConstraintFile, fileobj to remove the specified constraint from the XML file. fileobj.removeConstraint(constraintName) removes the specified constraint from the XML file.

example

Input Arguments

expand all

Name of the constraint present in the XML file, specified as a character vector.

Data Types: char | string

Examples

expand all

Create an object, fileobj of Simulink.Mask.SharedConstraintFile to remove the constraint from the XML file.

fileobj.removeConstraint('numericconst')

Version History

Introduced in R2023a