imat_shp/get_units_labels


Purpose

Get units labels for the supplied imat_shp.

Syntax

str=get_units_labels(s)
str=get_units_labels(s,'full')

Description

GET_UNITS_LABELS returns a cell array of strings the size of the input imat_shp S which contains the units label string for each of the shapes. The optional input string 'full' specifies whether to use the units abbreviations or their full names. Leaving this argument off uses abbreviations.

Examples

>> s=imat_shp(1,'ordnumdatatype','acceleration');
>> setunits('in');
>> get_units_labels(s)

ans =
    'in/s^2'

>> get_units_labels(s,'full')

ans =
    'inch/second^2'

>>

See Also

imat_fn/get_units_labels, imat_result/get_units_labels