Daily and monthly moving averages

4 visualizzazioni (ultimi 30 giorni)
Indrani
Indrani il 17 Nov 2023
Risposto: Star Strider il 17 Nov 2023
How can we calculate the daily, monthly moving average for a particular dataset?
Right now, I am calculating the weekly averages as
answer = movmean(dataset, 24*7);
Thanks!

Risposte (1)

Star Strider
Star Strider il 17 Nov 2023
Use a timetable rather than a dataset. Then use the retime function.

Categorie

Scopri di più su Data Preprocessing in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by