How can I start the cumulative from a specific year?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Voss
2021-12-4
load('DATI_ECM_GIORNALIERI')
idx = find(DATIECMWFgiornalieri{:,1} == 2015,1);
C1 = cumsum(DATIECMWFgiornalieri{idx:end, 4});
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!