sbioreset - Delete all model and simulation objects

Syntax

sbioreset

Description

sbioreset deletes all SimBiology model and simulation objects at the root level. You cannot use a SimBiology model or simulation object after it is deleted. You should remove objects from the MATLAB workspace with the function clear.

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 an abstract kinetic law 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 the sbioregisterunit function. To add a unit prefix to the SimBiology user-defined library on the root, use the sbioregisterunitprefix function.

Example

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

sbioroot

  


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