Convert data from minutes to hourly average
조회 수: 1 (최근 30일)
이전 댓글 표시
My data has time set up as dd-month-yyyy hh:mm:ss How do I average my data from minutes to hours
댓글 수: 0
답변 (1개)
Mohammad Sami
2020년 10월 8일
If your data is in timetable / table format. You can use the groupsummary to summarise your data into any intervals.
a = groupsummary(TT,"Column_w_datetime","hour","mean");
댓글 수: 2
Mohammad Sami
2020년 10월 8일
Yes hour will provide hourly average. There are also other options if you want to change the interval.
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!