필터 지우기
필터 지우기

How can I group a timetable in hours 0-24h

조회 수: 6 (최근 30일)
Antonio Melieni
Antonio Melieni 2019년 4월 23일
댓글: Peter Perkins 2019년 5월 3일
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?

답변 (1개)

Steven Lord
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
Antonio Melieni
Antonio Melieni 2019년 4월 23일
what I needed was hour = hour(timetable.Time);
Peter Perkins
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 CenterFile Exchange에서 Data Preprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by