Main Content

removeConstraint

Class: Simulink.VariantConfigurationData
Namespace: Simulink

Remove constraint from variant configuration data object

Description

Note

This method requires Variant Manager for Simulink®.

vcdataObj.removeConstraint(constrName) removes the specified model-wide constraint from the variant configuration data object vcdataObj, which is an object of the Simulink.VariantConfigurationData class.

example

Input Arguments

expand all

Name of the constraint that must be removed, specified as a character vector or string. This constraint must be present in the variant configuration data object vcdataObj.

Example: "PlantLocConstraint"

Data Types: char | string

Examples

expand all

Remove a constraint named PlantLocConstraint from the variant configuration data object vcdataObj:

constr_struct=vcdataObj.removeGlobalConstraint("PlantLocConstraint");

Version History

Introduced in R2013b