Main Content


timeseries data quality



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


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

Input Arguments

collapse all

Input timeseries, specified as a scalar.

Data Types: timeseries

Version History

Introduced before R2006a

See Also