sbioroot - Return SimBiology® root object

Syntax

rootObj = sbioroot
modelObj = sbioroot('modelName')

Arguments

rootObjReturn sbioroot to this object.
modelObjReturn the model with name modelName to this object.
modelNameSpecify the name of the model that is on the root object.

Description

rootObj = sbioroot returns the SimBiology root object to root. The SimBiology root object contains a list of the top-level SimBiology model objects, available units, unit prefixes, and available abstract kinetic law objects.

modelObj = sbioroot('modelName') returns the SimBiology model with name, modelName to modelObj. A SimBiology model object has its Parent property set to the SimBiology root object.

The units define the set of built-in units and user-defined units. See Unit object for more information.

The unit prefixes define the set of built-in prefixes and user-defined prefixes. See Unit Prefix object for more information.

The abstract kinetic law objects define the built-in abstract kinetic law objects and user-defined abstract kinetic law objects. The process of defining a reaction requires the use of abstract kinetic law objects when configuring a SimBiology reaction object's KineticLaw property with the addkineticlaw function.

To add a unit, prefix or abstract kinetic law to the root ( in the user-defined library), use the sbioaddtolibrary function. To remove, use sbioremovefromlibrary.

The models opened in the SimBiology desktop are stored in the root object.

Method Summary

copyobj (any object)Copy SimBiology® object and its children
delete (any object)Delete SimBiology® object
reset (root)Delete all model objects from root object

Property Summary

BuiltInLibraryLibrary of built-in components
ModelsContain all model objects
TypeDisplay top-level SimBiology® object type
UserDefinedLibraryLibrary of user-defined components

Examples

  1. Get all SimBiology model objects contained by the root.

    rootObj = sbioroot;
    allmodels = get(rootObj, 'Models');       
  2. Get the model with name cell.

    modelObj = sbioroot('cell');

See Also

addkineticlaw, sbiomodel, sbioreset

  


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