Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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
Was this topic helpful?