Main Content

removeConstraint

Remove specified constraint from XML file

Since R2023a

    Description

    example

    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.

    Examples

    collapse all

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

    fileobj.removeConstraint('numericconst')
    

    Input Arguments

    collapse all

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

    Data Types: char | string

    Version History

    Introduced in R2023a