I wish to sum up every 12th value in a time series. I want the value from 1-12, 13 - 24 , 25-36 and so on through the whole time series.

3 views (last 30 days)
This is to extract the annual value form a monthly time series.
Can anybody help me out here?
Many thanks!

Accepted Answer

dpb
dpb on 16 Oct 2017
yrsum=sum(reshape(series,12,[]);

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!