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.

Answers (1)

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

Asked:

on 24 Mar 2013

Commented:

on 5 Jun 2023

Community Treasure Hunt

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

Start Hunting!