Skip to Main Content Skip to Search
Product Documentation

sbioremovefromlibrary - Remove kinetic law, unit, or unit prefix from library

Syntax

sbioremovefromlibrary (Obj)
sbioremovefromlibrary ('Type', 'Name')

Description

sbioremovefromlibrary (Obj) removes the kinetic law definition, unit, or unit prefix object (Obj) from the user-defined library. The removed component will no longer be available automatically in future MATLAB sessions.

sbioremovefromlibrary does not remove a kinetic law definition that is being used in a model.

You can use a built-in or user-defined kinetic law definition when you construct a kinetic law object with the method addkineticlaw.

sbioremovefromlibrary ('Type', 'Name') removes the object of type 'Type' with name 'Name' from the corresponding user-defined library. Type can be 'kineticlaw', 'unit' or 'unitprefix'.

To get a component of the built-in and user-defined libraries, use the commands get(sbioroot, 'BuiltInLibrary') and get(sbioroot, 'UserDefinedLibrary').

To create a kinetic law definition, unit, or unit prefix, use sbioabstractkineticlaw, sbiounit, or sbiounitprefix respectively.

To add a kinetic law definition, unit, or unit prefix to the user-defined library, use the function sbioaddtolibrary.

Examples

This example shows how to remove a kinetic law definition from the user-defined library.

  1. Create a kinetic law definition.

    abstkineticlawObj = sbioabstractkineticlaw('mylaw1', '(k1*s)/(k2+k1+s)');
  2. Add the new kinetic law definition to the user-defined library.

    sbioaddtolibrary(abstkineticlawObj);

    sbioaddtolibrary adds the kinetic law definition to the user-defined library. You can verify this using sbiowhos.

    sbiowhos -kineticlaw -userdefined
    
    SimBiology Abstract Kinetic Law Array
    
    Index:    Library:       Name:     Expression:
    1         UserDefined    mylaw1    (k1*s)/(k2+k1+s)  
  3. Remove the kinetic law definition.

    sbioremovefromlibrary('kineticlaw', 'mylaw1');

See Also

sbioabstractkineticlaw | sbioaddtolibrary | sbiounit | sbiounitprefix

  


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