addmodel (model) - Add submodel object to model object

Syntax

submodelObj = addmodel(modelObj, 'NameValue')

submodelObj = addmodel(...'PropertyName', PropertyValue...)

Arguments

modelObjModel object. Enter a name for a model object.
NameValueDescriptive name for a model object. Enter a unique character string.

A model object can be referenced by other objects using this property.

submodelObjModel object to be added as a submodel.

Description

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').

See Also

sbiomodel, sbioupdate

  


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