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

Syntax

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

Description

sbioremovefromlibrary (Obj) removes the abstract kinetic law, 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 an abstract kinetic law that is being used in a model.

You can use a built-in or user-defined abstract kinetic law 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'), get(sbioroot, 'UserDefinedLibrary').

To create an abstract kinetic law, unit, or unit prefix use sbioabstractkineticlaw, sbiounit, or sbiounitprefix respectively.

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

Example

Shows you how to remove an abstract kinetic law from the user-defined library.

  1. Create an abstract kinetic law.

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

    sbioaddtolibrary(abstkineticlawObj);

    sbioaddtolibrary adds the abstract kinetic law 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 abstract kinetic law.

    sbioremovefromlibrary('kineticlaw', 'mylaw1');

See Also

sbioaddtolibrary, sbioabstractkineticlaw, sbiounit, sbiounitprefix

  


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