Main Content

getqualitydesc

timeseries 数据质量

说明

示例

tsquality = getqualitydesc(ts) 基于赋予 timeseries 对象 tsQuality 值返回数据质量说明的元胞数组。

示例

全部折叠

创建一个 timeseries 对象 ts,指定由 0 和 1 组成的质量向量。为 QualityInfo.CodeQualityInfo.Description 属性赋值,并显示质量说明。

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

输入参数

全部折叠

输入 timeseries,指定为标量。

数据类型: timeseries

版本历史记录

在 R2006a 之前推出

另请参阅