imat_result/get_units_labels


Purpose

Get units labels for the supplied imat_result.

Syntax

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

Description

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

Examples

>> r=imat_result(1,'resulttype','acceleration');
>> setunits('in');
>> get_units_labels(r)

ans =
    'in/s^2'

>> get_units_labels(r,'full')

ans =
    'inch/second^2'

>>

See Also

imat_fn/get_units_labels, imat_shp/get_units_labels