Remove configuration set from model
removeconfigset(
modelObj
,
'NameValue
')
removeconfigset(modelObj
, configsetObj
)
| Model object from which
to remove the configuration set. |
| Name of the configuration set. |
| Configset object that
is to be removed from the model object. |
removeconfigset(
removes and deletes the configset object with the name
modelObj
,
'NameValue
')
from the SimBiology® model object NameValue
. 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 modelObj
'default'
. You cannot
remove the default configuration set from
. If the active configuration set is
removed from modelObj
, then the default
configuration set will be made active.modelObj
removeconfigset(
removes and deletes the configuration set object,
modelObj
, configsetObj
)
, from the SimBiology model, configsetObj
. modelObj
Create a model object by importing the file oscillator.xml
and
add a configset.
modelObj = sbmlimport('oscillator'); configsetObj = addconfigset(modelObj, 'myset');
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));