Main Content

getqualitydesc

timeseries のデータ特性

説明

tsquality = getqualitydesc(ts) は、timeseries オブジェクト ts に割り当てた Quality 値に基づいてデータの特性の説明の cell 配列を返します。

すべて折りたたむ

timeseries オブジェクト ts を作成し、0 と 1 で構成される特性ベクトルを指定します。QualityInfo.Code および QualityInfo.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 より前に導入