getunitlist

Returns a list of supported units for a given unittype.

Attention: Available only with Activate commercial edition.

Syntax

R = getunitlist(unittype)

Inputs

unittype
Supported unittype.
Type: string
Dimension: string

Outputs

R
Cell array of supported units for given unit type.
Type: cell
Dimension: cell

Example

getunitlist example:

unit_types = getunittypelist();
unit_type = unit_types{1,1}
R = getunitlist(unit_type) 
unit_type = length
R = 
{
  [1,1] A
  [1,2] Al
  [1,3] Em
  [1,4] Gm
  [1,5] Mm
...
  [1,34] pm
  [1,35] stat_mile
  [1,36] yd
  [1,37] ym
  [1,38] zm
}