Finding 8 day averages for timeseries data
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Time Series Events finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!