Daily and monthly moving averages

3 次查看(过去 30 天)
Indrani
Indrani 2023-11-17
回答: Star Strider 2023-11-17
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!

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Data Preprocessing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by