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.

1 visualización (últimos 30 días)
This is to extract the annual value form a monthly time series.
Can anybody help me out here?
Many thanks!

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by