| SimBiology® | ![]() |
Note addmodel produces a warning and will be removed in a future version. Submodels will not be supported in future releases. Use the function sbioupdate to convert submodels into models. |
submodelObj =
addmodel(modelObj, 'NameValue')
submodelObj =
addmodel(...'PropertyName', PropertyValue...)
| modelObj | Model object. Enter a name for a model object. |
| NameValue | Descriptive name for a model object. Enter a unique character
string. A model object can be referenced by other objects using this property. |
| submodelObj | Model object to be added as a submodel. |
submodelObj = addmodel(modelObj, 'NameValue') creates a submodel object and returns to submodelObj. In the submodel object, this method assigns a value (NameValue) to the property Name, and assigns the model object (modelObj) to the property Parent. In the model object, this method assigns the submodel object to the property Models.
modelObj = sbiomodel('cell')
submodelObj = addmodel('nucleus')

A model object must have a unique name at the level it is created. For example, if you create a model with the name cell, you cannot create another model object named cell. However, a model object can contain a submodel object named cell which can contain a submodel object named cell.
modelObj does not have access to submodelObj parameters. However, submodelObj does have access and can use modelObj parameters.
submodelObj =
addmodel(...'PropertyName', PropertyValue...) defines
optional property values. The property name/property value pairs can
be in any format supported by the function set (for
example, name-value string pairs, structures, and name-value cell
array pairs).
You can view additional model object properties with the function get. You can change additional model object properties with the function set. You can view the submodel objects of modelObj with the command get(modelObj, 'Models').
![]() | addkineticlaw (reaction) | addparameter (model, kineticlaw) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |