converting data from minutes to hours

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일

0 개 추천

>> data_minute = rand(180, 1); % synthetic data
>> data_hour = mean(reshape(data_minute, 60, []))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2011년 12월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by