| SimBiology® | ![]() |
sbiocopylibrary ('kineticlaw','LibraryFileName')
sbiocopylibrary ('unit','LibraryFileName')
sbiocopylibrary copies all user-defined abstract kinetic laws to a file.sbiocopylibrary ('kineticlaw','LibraryFileName') copies all user-defined abstract kinetic laws to the file LibraryFileName.sbklib and places the copied file in the current directory.
sbiocopylibrary ('unit','LibraryFileName') copies all user-defined units and unit-prefixes to the file LibraryFileName.sbulib.
To get the abstract kinetic law objects in the built-in and user-defined libraries, use the commands get(sbioroot, 'BuiltInKineticLaws'), get(sbioroot, 'UserDefinedKineticLaws'). To add an abstract kinetic law to the user-defined library, use the method sbioaddtolibrary.
To add a unit to the user-defined library, use the sbioregisterunit function. To add a unit prefix to the user-defined library, use the sbioregisterunitprefix function.
Create an abstract kinetic law, add it to the user-defined library and then copy the user-defined kinetic law library to a .sbklib file.
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)
Copy the user-defined kinetic law library.
sbiocopylibrary ('kineticlaw','myLibFile')Verify with sbiowhos.
sbiowhos -kineticlaw myLibFile
sbioaddtolibrary, sbioabstractkineticlaw, sbioregisterunit, sbioregisterunitprefix, sbioremovefromlibrary
![]() | sbioconvertunits | sbiodesktop | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |