필터 지우기
필터 지우기

converting data from minutes to hours

조회 수: 1 (최근 30일)
Oliver
Oliver 2011년 12월 4일
Hi, I have a data set of temperature values for every minute over a time period. What would be the easiest way to convert the data in to hourly data by taking an average of 60 minute periods?
Thanks, Olly

채택된 답변

David Young
David Young 2011년 12월 4일
>> data_minute = rand(180, 1); % synthetic data
>> data_hour = mean(reshape(data_minute, 60, []))
  댓글 수: 1
Oliver
Oliver 2011년 12월 4일
that's great, thanks for the help

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by