sbiocopylibrary - Copy library to disk

Syntax

sbiocopylibrary ('kineticlaw','LibraryFileName')
sbiocopylibrary ('unit','LibraryFileName')

Description

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.

Example

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.

  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. Copy the user-defined kinetic law library.

    sbiocopylibrary ('kineticlaw','myLibFile')
  4. Verify with sbiowhos.

    sbiowhos -kineticlaw myLibFile

See Also

sbioaddtolibrary, sbioabstractkineticlaw, sbioregisterunit, sbioregisterunitprefix, sbioremovefromlibrary

  


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