Skip to Main Content Skip to Search
Product Documentation

sbioreset - Delete all model objects

Syntax

sbioreset

Description

sbioreset deletes all SimBiology model objects at the root level. You cannot use a SimBiology model object after it is deleted.

The SimBiology root object contains a list of SimBiology model objects, available units, unit prefixes, and kinetic law objects. A SimBiology model object has its Parent property set to the SimBiology root object.

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

Examples

This example shows the difference between sbioreset and clear all.

  1. Import a model into the workspace.

    modelObj = sbmlimport('oscillator');

    Note that the workspace contains modelObj and if you query the SimBiology root, there is one model on the root object.

    rootObj = sbioroot
    
    SimBiology Root Contains:
    
     Models:                           1
     Builtin Abstract Kinetic Laws:    3
     User Abstract Kinetic Laws:       0
     Builtin Units:                    54
     User Units:                       0
     Builtin Unit Prefixes:            13
     User Unit Prefixes:               0
    
  2. Use clear all to clear the workspace. The modelObj still exists on the rootObj.

    clear all
    rootObj
       
    
    SimBiology Root Contains:
    
     Models:                           1
     Builtin Abstract Kinetic Laws:    3
     User Abstract Kinetic Laws:       0
     Builtin Units:                    54
     User Units:                       0
     Builtin Unit Prefixes:            13
     User Unit Prefixes:               0
    
  3. Usesbioreset to delete the modelObj from the root.

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

See Also

sbioaddtolibrary | sbioroot | sbiounit | sbiounitprefix

How To

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS