主要内容

removeConfiguration

Remove variant configuration from variant configuration data object

    Description

    Add-On Required: This feature requires the Variant Manager for Simulink add-on.

    removeConfiguration(varConfigData,ConfigurationName=nameOfConfig) removes the variant configuration named nameOfConfig from the Simulink.VariantConfigurationData object varConfigData.

    example

    Examples

    collapse all

    Open the slexVariantManagement model.

    modelName = "slexVariantManagement";
    open_system(modelName);

    Remove the variant configuration named LinInterExpNoNoise from the variant configuration data object varConfigData, which is the Simulink.VariantConfigurationData object associated with the model.

    varConfigData = Simulink.VariantManager.getConfigurationData(modelName);
    removeConfiguration(varConfigData,ConfigurationName="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

    expand all