removeconfigset (model)

Remove configuration set from model

Syntax

removeconfigset(modelObj, 'NameValue')
removeconfigset(modelObj, configsetObj)

Arguments

modelObjModel object from which to remove the configuration set.
NameValueName of the configuration set.
configsetObjConfigset object that is to be removed from the model object.

Description

removeconfigset(modelObj, 'NameValue') removes and deletes the configset object with the name NameValue from the SimBiology® model object modelObj. A configuration set object stores simulation-specific information. A SimBiology model can contain multiple configuration sets with one being active at any given time. The active configuration set contains the settings that are used during the simulation. modelObj always contains at least one configuration set object with name configured to 'default'. You cannot remove the default configuration set from modelObj. If the active configuration set is removed from modelObj, then the default configuration set will be made active.

removeconfigset(modelObj, configsetObj) removes and deletes the configuration set object, configsetObj, from the SimBiology model, modelObj.

Examples

  1. Create a model object by importing the file oscillator.xml and add a configset.

    modelObj  = sbmlimport('oscillator');
    configsetObj = addconfigset(modelObj, 'myset');
  2. Remove the configset from modelObj by name or alternatively by indexing.

% Remove the configset with name 'myset'.
  removeconfigset(modelObj, 'myset');
         
 % Get all configset objects and remove the second.
  configsetObj = getconfigset(modelObj);
  removeconfigset(modelObj, configsetObj(2));

Introduced in R2006a