Daily and monthly moving averages

4 views (last 30 days)
Indrani
Indrani on 17 Nov 2023
Answered: Star Strider on 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!

Answers (1)

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

Categories

Find more on Data Preprocessing 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!