Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getqualitydesc

Class: timeseries

Data quality descriptions

Syntax

getqualitydesc(ts)

Description

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

Input Arguments

ts

A timeseries object.

Examples

Create a timeseries object, and then get the data quality description strings for ts:

% Create a timeseries object, ts, with Data, Time, and Quality 
% values, respectively:

ts = timeseries([3; 4.2; 5; 6.1; 8], 1:5, [1; 0; 1; 0; 1]);

% Set the QualityInfo property, including Code and Description:

ts.QualityInfo.Code = [0 1];
ts.QualityInfo.Description = {'good' 'bad'};

% Get the data quality description strings for ts:
getqualitydesc(ts)

MATLAB® returns:

ans = 

    'bad'
    'good'
    'bad'
    'good'
    'bad'

See Also

Introduced before R2006a

Was this topic helpful?