Advanced Indexing inside loop

1 次查看(过去 30 天)
I have a column of years-month (i.e. janurary of 1960= 196001), and of the data for that year. I need to create a loop to calcuate the anual rate of change from month to month. This means if I am starting with 196001 I need to up six months to 19607 grab that value, then subtract that from the value of 195907. Is there a index code that grabs the value of 6 above and 6 below of your original index.
  3 个评论
Andrei Bobrov
Andrei Bobrov 2019-2-6
Please attach small example your data as mat-file.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by