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.

답변 (1개)

Matt J
Matt J 2013년 3월 25일

2 개 추천

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

카테고리

질문:

2013년 3월 24일

댓글:

2023년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by