Effacer les filtres
Effacer les filtres

Advanced Indexing inside loop

1 vue (au cours des 30 derniers jours)
Michael Lauria
Michael Lauria le 6 Fév 2019
Commenté : Michael Lauria le 6 Fév 2019
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 commentaires
Andrei Bobrov
Andrei Bobrov le 6 Fév 2019
Please attach small example your data as mat-file.
Michael Lauria
Michael Lauria le 6 Fév 2019
Attatched is an example file

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by