This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

pm_getunits

Get information about all units in unit registry

Syntax

[units, conversions, expressions] = pm_getunits

Description

[units, conversions, expressions] = pm_getunits returns all units in the registry in a cell array, units. Their corresponding conversions and base expressions are returned in conversions and expressions, respectively. For fundamental units, the conversion is 1.0 and the base expression is the unit itself.

Examples

List all units currently defined in the registry:

pm_getunits

ans = 

    'm'
    'kg'
    's'
    'C'
    'K'
    'mol'
    'cm'
    'mm'
    'km'
    'um'
    'degC'
    'degF'
    'degR'
    'deltaK'
    'deltadegC'
    'deltadegF'
    'deltadegR'
    'R'
    'Fh'
    'in'
    'ft'
    'mi'
    'yd'
    'l'
    'gal'
    'igal'
    'g'
    'mg'
    'lbm'
    'oz'
    'slug'
    'N'
    'lbf'
    'dyn'
    'lb'
    'mN'
    'min'
    'hr'
    'ms'
    'us'
    'ns'
    'rad'
    'deg'
    'rev'
    'mph'
    'fpm'
    'fps'
    'rpm'
    'Hz'
    'kHz'
    'MHz'
    'GHz'
    'gee'
    'J'
    'kJ'
    'Btu_IT'
    'Btu'
    'eV'
    'W'
    'HP_DIN'
    'HP'
    'V'
    'A'
    'F'
    'H'
    'Ohm'
    'S'
    'c'
    'Wb'
    'T'
    'G'
    'mV'
    'kV'
    'pA'
    'nA'
    'uA'
    'mA'
    'kA'
    'pF'
    'nF'
    'uF'
    'mF'
    'nH'
    'uH'
    'mH'
    'kOhm'
    'MOhm'
    'GOhm'
    'nS'
    'uS'
    'mS'
    'uW'
    'mW'
    'kW'
    'MW'
    'lpm'
    'gpm'
    'P'
    'Poise'
    'cP'
    'reyn'
    'St'
    'cSt'
    'newt'
    'Newt'
    'Pa'
    'bar'
    'psi'
    'atm'
    'uPa'
    'kPa'
    'MPa'
    'GPa'
    'kbar'

Introduced in R2007a