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 次查看(过去 30 天)
This is to extract the annual value form a monthly time series.
Can anybody help me out here?
Many thanks!

采纳的回答

dpb
dpb 2017-10-16
yrsum=sum(reshape(series,12,[]);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by