Main Content

reset (root)

Delete all model objects from root object

Syntax

reset(sbioroot)

Description

reset(sbioroot) deletes all SimBiology® model objects contained by the root object. This call is equivalent to sbioreset.

The root object contains a list of model objects, available units, unit prefixes, and kinetic laws.

To add a kinetic law to the user-defined library, use the sbioaddtolibrary function. To add a unit to the user-defined library, use sbiounit followed by sbioaddtolibrary. To add a unit prefix to the user-defined library, use sbiounitprefix followed by sbioaddtolibrary.

Examples

  1. Query sbioroot, which has two model objects.

    sbioroot
    
       SimBiology Root Contains:
    
        Models:                           2
        Builtin Abstract Kinetic Laws:    3
        User Abstract Kinetic Laws:       1
        Builtin Units:                    54
        User Units:                       0
        Builtin Unit Prefixes:            13
        User Unit Prefixes:               0
  2. Call reset.

    sbioroot
    
       SimBiology Root Contains:
    
        Models:                           0
        Builtin Abstract Kinetic Laws:    3
        User Abstract Kinetic Laws:       1
        Builtin Units:                    54
        User Units:                       0
        Builtin Unit Prefixes:            13
        User Unit Prefixes:               0

Version History

Introduced in R2006a