how to calculate monthly average from hourly average

조회 수: 1 (최근 30일)
SD
SD 2018년 3월 21일
댓글: KSSV 2018년 3월 23일
how to do monthly average for the each hour of the seperate day. eg: monthly average of (01/01/2012 0.00 hr,01/02/2012 0.00hr,02/01/2012 0.00hr ............31/01/2012) and also daily average for day time of the universal time average and night time also.presently from hourly average, i need to calculate daily average and also monthly average(i.e, 1/1/12 1.00am,2/1/12 1.00am ...31/1/12 1.00am)like this 24 hours. and three months average also. if you could help with this then my project can be solved easily

답변 (1개)

KSSV
KSSV 2018년 3월 21일
Read about datevec. This splits the date into years, months, days and hours......from here you can pick the required indices and get your mean.
Read about datevec and unique
  댓글 수: 2
SD
SD 2018년 3월 21일
sir,if you understood my problem can you give the program
KSSV
KSSV 2018년 3월 23일
You need to try out..and get stuck please come here. Also you will get the code here in the forum itself....search properly.

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

카테고리

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