Calculation of growth rate

I want to calculate the growth rate of a time series with the formula growth=(current/previous-1)*100. If anyone has done this, kindly guide me. I have the GDP time series and I want to compare GDP series in level and growth rates. Thank you.

Risposte (1)

Matt J
Matt J il 25 Mar 2013
growth=(series(2:end)./series(1:end-1)-1)*100;

Richiesto:

il 24 Mar 2013

Commentato:

il 5 Giu 2023

Community Treasure Hunt

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

Start Hunting!

Translated by