フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Export ts.quality as string

2 ビュー (過去 30 日間)
jakob ekwall
jakob ekwall 2016 年 2 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi!
I've written a script which makes use of the quality input argument in Matlab. It basically assigns a quality description to each of the values in the time series which I've defined with the QualityInfo.Code and QualityInfo.Description ts.quality is stored as a number depending how you define the QualityInfo.Code, I would like to export it as a string just as I've defined them in the ts.QualityInfo.Description. Is that possible to do?
ts=timeseries(tabFrb,xsource,qual);
ts.QualityInfo.Code= [0 1 2 3 4 5];
ts.QualityInfo.Description= {'-' 'Ok' 'Suspicious value' 'Incorrect value' 'Low' 'High' };

回答 (1 件)

Subin Kuttappan Stellal Mary
Subin Kuttappan Stellal Mary 2016 年 2 月 11 日
There is a built-in function getqualitydesc which returns a cell array of data quality descriptions based on the Quality values you assigned to a timeseries object.
Refer the documentation link which gives an example : http://in.mathworks.com/help/matlab/ref/timeseries.getqualitydesc.html
Once you get the cell array, convert it to string using char method.

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by