existsFor

Class: Simulink.VariantConfigurationData
Package: Simulink

Check if variant configuration data object exists for a model

Syntax

Simulink.VariantConfigurationData.existsFor(modelNameOrHandle)

Description

Simulink.VariantConfigurationData.existsFor(modelNameOrHandle) returns true if the variant configuration data object exists for the model.

Input Arguments

modelNameOrHandle

Name or handle to the model.

Examples

% Add the path to the model file
addpath(fullfile(docroot,'toolbox','simulink','examples'));

% Load the model
load_system('slexVariantManagement');

% Checks whether a variant configuration 
% data object exists for model
[exists] = Simulink.VariantConfigurationData.existsFor...
  ('slexVariantManagement')