Skip to Main Content Skip to Search
Product Documentation

sbioshowunits - Show units in library

Syntax

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')

Arguments

unitObjs

Vector of unit objects from the BuiltInLibrary and UserDefinedLibrary properties of the Root object.

Name

Name of the built-in or user-defined unit.

Composition

Shows the combination of base and derived units that defines the unit Name. For example, molarity is mole/liter.

Multiplier

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

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.

BuiltinAn 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.

Description

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.

Examples

[name, composition] = sbioshowunits;
[name, composition] = sbioshowunits('molecule');

See Also

sbioconvertunits | sbioshowunitprefixes | sbiounit

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS