This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getqualitydesc

timeseries data quality

Syntax

tsquality = getqualitydesc(ts)

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