How can I start the cumulative from a specific year?
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
Voss
on 4 Dec 2021
load('DATI_ECM_GIORNALIERI')
idx = find(DATIECMWFgiornalieri{:,1} == 2015,1);
C1 = cumsum(DATIECMWFgiornalieri{idx:end, 4});
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!