Main Content

getConfiguration

Class: Simulink.VariantConfigurationData
Namespace: Simulink

Get specific variant configuration from variant configuration data object

Description

Note

This method requires Variant Manager for Simulink®.

config_struct = vcdataObj.getConfiguration(nameOfConfiguration) returns the specified variant configuration from vcdataObj, which is an object of the Simulink.VariantConfigurationData class.

example

Input Arguments

expand all

Name of the variant configuration to be returned, specified as a character vector or string.

Example: "LinInterExpNoNoise"

Data Types: char | string

Output Arguments

expand all

Variant configuration, returned as a structure with the following fields:

FieldTypeDescription
Namechar

Name of the configuration.

Descriptionchar

Description of the configuration

ControlVariablesstructure

The variant control variable names and their values, returned as a struct.

Examples

expand all

Get the variant configuration named LinInterExpNoNoise from the variant configuration data object vardataObj.

vardataObj.getVariantConfiguration("LinInterExpNoNoise");

Version History

Introduced in R2013b