フィルターのクリア

1-hour to 6-hour aggregation?

3 ビュー (過去 30 日間)
Hüsamettin Taysi
Hüsamettin Taysi 2018 年 12 月 15 日
編集済み: Stephan 2018 年 12 月 15 日
Hi all, I have rainfall data in hourly format. I want to aggregate the data to 6 hour sum data.
For ex.
01.00 5
02.00 4
03.00 6
04.00 1
05.00 9
06.00 5
the new data will be;
  • 30 mm
Is it possible with matlab?

回答 (1 件)

Stephan
Stephan 2018 年 12 月 15 日
編集済み: Stephan 2018 年 12 月 15 日
Hi,
retime should do the job - see the example:
a = hours(1:6) + datetime('00:00','format','HH:mm');
b = [1 2 3 4 5 6];
c = timetable(a',b')
d = retime(c,'regular','sum','timestep',hours(2),'includedEdge','right')
Best regards
Stephan

カテゴリ

Help Center および File ExchangeMATLAB Parallel Server についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by