getqualitydesc

timeseries data quality

Description

example

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

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 array
    {'Bad' }
    {'Good'}
    {'Bad' }
    {'Good'}
    {'Bad' }

Input Arguments

collapse all

Input timeseries, specified as a scalar.

Data Types: timeseries

See Also

Introduced before R2006a