Main Content

removeConfiguration

Remove variant configuration from variant configuration data object

    Description

    Note

    This function requires Variant Manager for Simulink®.

    removeConfiguration(varconfigdata,nameofconfig) removes the variant configuration named nameofconfig from the Simulink.VariantConfigurationData object varconfigdata.

    example

    Examples

    collapse all

    Remove a variant configuration named LinInterExpNoNoise from the variant configuration data object varconfigdata. varconfigdata is the Simulink.VariantConfigurationData object associated with the model specified by modelname.

    modelname = "slexVariantManagement";
    openExample(modelname);
    varconfigdata = Simulink.VariantManager.getConfigurationData(modelname);
    removeConfiguration(varconfigdata,"LinInterExpNoNoise");

    Input Arguments

    collapse all

    Variant configuration data from which you want to remove the configuration, specified as a Simulink.VariantConfigurationData object.

    Name of the configuration to be removed, specified as a character vector or string scalar.

    Example: "LinInterExpNoNoise"

    Data Types: char | string

    Version History

    Introduced in R2013b