How can I start the cumulative from a specific year?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone,
I would need that my cumulative sum to start from 2015 instead of 1998; how can I do it?
load('DATI_ECM_GIORNALIERI')
C1 = cumsum(DATIECMWFgiornalieri{:, 4})
Thank you!
0 commentaires
Réponse acceptée
Voss
le 4 Déc 2021
load('DATI_ECM_GIORNALIERI')
idx = find(DATIECMWFgiornalieri{:,1} == 2015,1);
C1 = cumsum(DATIECMWFgiornalieri{idx:end, 4});
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!