converting data from minutes to hours
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
David Young
2011년 12월 4일
>> data_minute = rand(180, 1); % synthetic data
>> data_hour = mean(reshape(data_minute, 60, []))
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!