Finding 8 day averages for timeseries data
Show older comments
I have two data types; daily runoff and 8-day chlorophyll.
I've created loops to generate monthly and yearly averages for the chlorophyll and runoff, but am not sure how to make 8-day averages for the runoff.
Here is one of my yearly loops
year_counter = 1;
y2 = runoff_loop_dates(:,1);
yearUN = unique(y2);
for ii = 1:length(yearUN)
idx = find(y2==yearUN(ii));
runoff_year(ii) = nanmean(runoff(idx));
year_counter = year_counter + 1;
end
How can I change this to find 8-day averages? Thank you.
Accepted Answer
More Answers (0)
Categories
Find more on Time Series Events 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!