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.

Réponses (1)

Matt J
Matt J le 25 Mar 2013

2 votes

growth=(series(2:end)./series(1:end-1)-1)*100;

Community Treasure Hunt

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

Start Hunting!

Translated by