Relationship between defined unit and base unit
The 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, in 1 mole =
6.0221e23*molecule, the Multiplier is
6.0221e23.
| Applies to | Object: Unit |
| Data type | double |
| Data values | Nonzero real number. Default value is 1. |
| Access | Read/write |
This example shows how to create a user-defined unit, add it to the user-defined library, and query the library.
Create a user-defined unit called usermole,
whose composition is molecule and Multiplier property
is 6.0221e23.
unitObj = sbiounit('usermole', 'molecule', 6.0221e23); Add the unit to the user-defined library.
sbioaddtolibrary(unitObj);
Query the Multiplier property.
get(unitObj, 'Multiplier') ans = 1/molarity*second