| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimBiology |
| Contents | Index |
| Learn more about SimBiology |
sbiocopylibrary ('kineticlaw','LibraryFileName')
sbiocopylibrary ('unit','LibraryFileName')
sbiocopylibrary copies all user-defined kinetic law definitions to a file. sbiocopylibrary ('kineticlaw','LibraryFileName') copies all user-defined kinetic law definitions 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 kinetic law definitions that are in the built-in and user-defined libraries, use the commands get(sbioroot, 'BuiltInKineticLaws') and get(sbioroot, 'UserDefinedKineticLaws'). To add a kinetic law definition 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 a kinetic law definition, add it to the user-defined library, and then copy the user-defined kinetic law library to a .sbklib file.
Create a kinetic law definition.
abstkineticlawObj = sbioabstractkineticlaw('mylaw1', '(k1*s)/(k2+k1+s)');Add the new a 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)
Copy the user-defined kinetic law library.
sbiocopylibrary ('kineticlaw','myLibFile')Verify with sbiowhos.
sbiowhos -kineticlaw myLibFile
sbioaddtolibrary, sbioabstractkineticlaw, sbioregisterunit, sbioregisterunitprefix, sbioremovefromlibrary
![]() | sbioconvertunits | sbiodesktop | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |