| SimBiology® | ![]() |
unitObjs = sbioshowunits
[Name, Composition] =
sbioshowunits
[Name, Composition, Multiplier]
= sbioshowunits
[Name, Composition, Multiplier, Offset]
= sbioshowunits
[Name, Composition, Multiplier, Offset,
Builtin] = sbioshowunits
[Name, Composition, Multiplier, Offset,
Builtin] = sbioshowunits('Name')
| unitObjs | Vector of unit objects from the BuiltInLibrary and UserDefinedLibrary properties of the Root object. |
| Name | Name is the name of the built-in or user-defined unit. |
| Composition | Composition shows the combination of base and derived units that defines the unit Name. For example molarity is mole/liter. |
| Multiplier | Multiplier is the numerical value that defines the relationship between the unit Name and the base or derived unit as a product of the Multiplier and the base unit or derived unit. For example 1 mole is 6.0221e23*molecule. The Multiplier is 6.0221e23. |
| Offset | 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. |
| Builtin | Builtin is an array of logical values. If Builtin is true for a unit, the unit is built-in. If Builtin is false for a unit, the unit is user-defined. |
unitObjs = sbioshowunits returns the units in the library to unitObjs as a vector of unit objects.
[Name, Composition] = sbioshowunits returns the composition for each unit in Name to Composition as a cell array of strings.
[Name, Composition, Multiplier] = sbioshowunits returns the multiplier for the unit with name Name to Multiplier.
[Name, Composition, Multiplier, Offset] = sbioshowunits returns the offset for the unit with name Name to Offset. The unit is defined as Multiplier*Composition+Offset.
[Name, Composition, Multiplier, Offset, Builtin] = sbioshowunits returns whether the unit is built-in or user-defined for each unit in Name to Builtin.
[Name, Composition, Multiplier, Offset, Builtin] = sbioshowunits('Name') returns the name, composition, multiplier, offset and built-in status for the unit with name Name. Name can be a cell array of strings.
[name, composition] = sbioshowunits;
[name, composition] = sbioshowunits('molecule');
sbiounit, sbioshowunitprefixes, sbioconvertunits
![]() | sbioshowunitprefixes | sbiosimulate | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |