Mapping Toolbox    
unitstr

Test for valid unit strings or abbreviations

Syntax

Description

unitstr lists all valid unit strings and all abbreviations that are not simply truncations of the original strings (e.g., 'km' for 'kilometers').

str = unitstr(str0,measstr) returns the valid, standard string str corresponding to the recognized abbreviation str0. The type of string sought is specified by measstr, which can be 'distances', 'angles', or 'time'.

Examples

This command recognizes and standardizes certain abbreviations:

And any unique truncation:

See Also
angledim
Angle unit conversion
distdim
Distance unit conversion
timedim
Time unit conversion


  trimcart usahi