| Contents | Index |
sbioremovefromlibrary (Obj)
sbioremovefromlibrary ('Type', 'Name')
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.
This example shows how to remove a kinetic law definition from the user-defined library.
Create a kinetic law definition.
abstkineticlawObj = sbioabstractkineticlaw('mylaw1', '(k1*s)/(k2+k1+s)');
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)
Remove the kinetic law definition.
sbioremovefromlibrary('kineticlaw', 'mylaw1');
sbioabstractkineticlaw | sbioaddtolibrary | sbiounit | sbiounitprefix

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |