フィルターのクリア

Why when I do the cumulative with retime, data don't change?

2 ビュー (過去 30 日間)
Pul
Pul 2021 年 8 月 26 日
コメント済み: Star Strider 2021 年 8 月 26 日
Hello everyone,
when I use retime for doing the cumulative, values remain the same. (If you see data in 'DATI_ECM_GIORNALIERI' and data in 'Cum_Giu' are exactly the same, despite I used "Cum_Giu = retime(table2timetable(DATIECMWFgiornalieri, 'RowTimes', DTv), 'daily', @(x)sum(x,1,'omitnan'))."
How can I solve this problem?
Thank you.
%CUMULATIVE
load('DATI_ECM_GIORNALIERI')
DTv = datetime(DATIECMWFgiornalieri{:,1:3})
Cum_Giu = retime(table2timetable(DATIECMWFgiornalieri, 'RowTimes', DTv), 'daily', @(x)sum(x,1,'omitnan'))
CTv = Cum_Giu.Properties.RowTimes;
yyaxis right
plot(CTv, Cum_Giu.SMB_mpmm, 'm', 'DisplayName','ECMWF');
yyaxis left
plot(C,NEW, 'DisplayName','AWS')
Ax = gca;
Ax.YAxis(2).Color = 'm';
legend('Location','best')

採用された回答

Star Strider
Star Strider 2021 年 8 月 26 日
It does not change because the rows are already daily values, and the retime call summarizes the data by daily values.
.
  8 件のコメント
Pul
Pul 2021 年 8 月 26 日
Thanks for the tip!
Star Strider
Star Strider 2021 年 8 月 26 日
As always, my pleasure!
.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by