| SimBiology® | ![]() |
sbioremovefromlibrary (Obj)
sbioremovefromlibrary ('Type', 'Name')
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.
Shows you how to remove an abstract kinetic law from the user-defined library.
Create an abstract kinetic law.
abstkineticlawObj = sbioabstractkineticlaw('mylaw1', '(k1*s)/(k2+k1+s)');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)
Remove the abstract kinetic law.
sbioremovefromlibrary('kineticlaw', 'mylaw1');sbioaddtolibrary, sbioabstractkineticlaw, sbiounit, sbiounitprefix
![]() | sbioregisterunitprefix | sbioreset | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |