Skip to Main Content Skip to Search
Product Documentation

addConfigSet - Class: cgv.CGV
Package: cgv

Add configuration set

Syntax

cgvObj.addConfigSet(configSet)
cgvObj.addConfigSet('configSetName')
cgvObj.addConfigSet('file','configSetFileName')
cgvObj.addConfigSet('file','configSetFileName','variable','configSetName')

Description

cgvObj.addConfigSet(configSet) is an optional method that adds the configuration set to the object. cgvObj is a handle to a cgv.CGV object. configSet is a variable that specifies a configuration set.

cgvObj.addConfigSet('configSetName') is an optional method that adds the configuration set to the object. configSetName is a string that specifies the name of the configuration set in the workspace.

cgvObj.addConfigSet('file','configSetFileName') is an optional method that adds the configuration set to the object. configSetFileName is a string that specifies the name of the file that contains only one configuration set.

cgvObj.addConfigSet('file','configSetFileName','variable', 'configSetName') is an optional method that adds the configuration set to the object. The file contains one or more configuration sets. Specify the name of the configuration set to use.

This method replaces all configuration parameter values in the model with the values from the configuration set that you add. The object applies the configuration set when you call the run method. You can add only one configuration set for each cgv.CGV object.

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS