How can I group a timetable in hours 0-24h
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a timetable with tick data of FX rates on a minutely basis.
The timetable is 527040 x 4
Starting from the 01.01.2018 until 01.01.2019
I want to investegate the behaviour of every hour.
So i want the mean of all prices from 00-01 and so on until 23-24.
any ideas?
0 件のコメント
回答 (1 件)
Steven Lord
2019 年 4 月 23 日
See the "Aggregate Timetable Data and Calculate Mean Values" example on the retime documentation page. While that uses a duration array as the RowTimes for the timetable you can do the same using a timetable with datetime RowTimes as well.
2 件のコメント
Peter Perkins
2019 年 5 月 3 日
Antonio, I think what you needed was
TThourly = retime(TTminutely,'hourly','mean')
but perhaps that's what you meant.
参考
カテゴリ
Help Center および File Exchange で Calendar についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!