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 Center および File ExchangeData Preprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by