| SimBiology® | ![]() |
Note sbioregisterunit has been removed and produces an error. Use sbiounit, followed by sbioaddtolibrary instead. |
sbioregisterunit('Name', 'Composition', Multiplier)
sbioregisterunit('Name', 'Composition', Multiplier, Offset)
sbioregisterunit('Name', 'Composition', Multiplier) creates a unit with the name Name where the unit is defined as Multiplier*Composition and records the unit in the UserDefinedUnits vector of sbioroot and adds it to the user-defined library.
sbioregisterunit('Name', 'Composition', Multiplier, Offset) creates a unit with the specified offset. You can list available units with the sbioshowunits function.
Name is the name of the user-defined unit. Name must begin with characters and can contain characters, underscores or numbers. Name can be any valid MATLAB variable name.
Composition shows the combination of base and derived units that defines the unit Name. For example molarity is mole/liter. Base units are the set of units used to define all unit quantity equations. Derived units are defined using base units or mixtures of base and derived units.
Multiplier is the numerical value that defines the relationship between the unit Name and the base unit as a product of the Multiplier and the base unit. For example 1 mole is 6.0221e23*molecule. The Multiplier is 6.0221e23.
Offset is the numerical value by which the unit composition is modified from the base unit. For example °Celsius = (5/9)*(°Fahrenheit-32); Multiplier is 5/9 and Offset is –32.
sbioaddtolibrary, sbioremovefromlibrary, sbioshowunits, sbiounit
![]() | sbioreaction | sbioregisterunitprefix | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |