필터 지우기
필터 지우기

How to take seasonal average of monthly values?

조회 수: 2 (최근 30일)
SONI SONI
SONI SONI 2016년 2월 11일
편집: dpb 2016년 2월 11일
Hello, I have 10 years (120 months) temperature data set. Now I want to take seasonal average of these monthly dataset. season 1 (Jan, Feb, Mar), season 2 (apr, may, june), season 3 (july, aug, sep) and season 4(oct, nov, dec) for every year. Final time series will represent 30 values. Can anyone help me to solve this problem?
  댓글 수: 2
Andrei Bobrov
Andrei Bobrov 2016년 2월 11일
Please, small example your temperature data.
SONI SONI
SONI SONI 2016년 2월 11일
Temperature in celsius for a year
Jan 13.34, Feb 16.23, Mar 20.07, Apr 27.02, May 29.07, June 27.36, July 26.17, Aug 25.84, sep 25.55, oct 23.04, Nov 18.74, dec 14.71
Simillarly I have 10 year monthly temperature data.

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

채택된 답변

dpb
dpb 2016년 2월 11일
편집: dpb 2016년 2월 11일
Depends on storage order...if 10x12 (years x months), then
Tseas=mean(reshape(T.',3,[]));
If it's already in column order by year, ditch the transpose .'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by