필터 지우기
필터 지우기

Convert data from minutes to hourly average

조회 수: 1 (최근 30일)
Marina Minic
Marina Minic 2020년 10월 8일
댓글: Mohammad Sami 2020년 10월 8일
My data has time set up as dd-month-yyyy hh:mm:ss How do I average my data from minutes to hours

답변 (1개)

Mohammad Sami
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
Marina Minic
Marina Minic 2020년 10월 8일
Thanks. In the answer you posted, do I just put "hour", or does that need to be replaced with something?
Mohammad Sami
Mohammad Sami 2020년 10월 8일
Yes hour will provide hourly average. There are also other options if you want to change the interval.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by