Main Content

getqualitydesc

timeseries data quality

Description

tsquality = getqualitydesc(ts) returns a cell array of data quality descriptions based on the Quality values assigned to a timeseries object ts.

example

Examples

collapse all

Create a timeseries object ts, specifying a quality vector made up of zeros and ones. Assign values to the QualityInfo.Code and QualityInfo.Description properties, and display the quality descriptions.

ts = timeseries([3 4.2 5 6.1 8]',1:5,[1 0 1 0 1]');
ts.QualityInfo.Code = [0 1];
ts.QualityInfo.Description = {'Good' 'Bad'};
tsquality = getqualitydesc(ts)
tsquality = 5x1 cell
    {'Bad' }
    {'Good'}
    {'Bad' }
    {'Good'}
    {'Bad' }

Input Arguments

collapse all

Input timeseries, specified as a scalar.

Data Types: timeseries

Version History

Introduced before R2006a

See Also