sbioshowunits
Show units in library
If you specify four output arguments when calling sbioshowunits
, the
function no longer returns the offset information as the fourth output. The fourth output is
now a logical vector that is true for each built-in unit.
You can no longer specify five output arguments when you call
sbioshowunits
. For details, see Version History.
Syntax
unitObjs
= sbioshowunits
[Name, Composition
]
= sbioshowunits
[Name, Composition, Multiplier
]
= sbioshowunits
[Name, Composition, Multiplier, Builtin
] = sbioshowunits
[___] = sbioshowunits(
)UnitNames
Arguments
| Vector of unit objects from the |
| Names of the built-in or user-defined units, specified as a character vector, string, string vector, or cell array of character vectors. |
| Shows the combination of base and derived units that
defines the unit |
| The numerical value that defines the relationship between
the unit |
| An array of logical values. If is true
for a unit, the unit is built in. If
is false for a unit, the
unit is user-defined. |
Description
returns
the units in the library to unitObjs
= sbioshowunits
as
a vector of unit objects.unitObjs
[
returns the composition for
each unit in Name, Composition
]
= sbioshowunits
to Name
as
a cell array of character vectors. Composition
[
returns the multiplier for the
unit with name Name, Composition, Multiplier
]
= sbioshowunits
to Name
.Multiplier
[
returns whether the unit is built in or user defined for each unit in
Name, Composition, Multiplier, Builtin
] = sbioshowunits
to
Name
. Builtin
[___] = sbioshowunits(
returns information about the units matching any of the names specified in
)UnitNames
. UnitNames
Examples
[name, composition] = sbioshowunits; [name, composition] = sbioshowunits('molecule');