How Create Pentad average
5 ビュー (過去 30 日間)
古いコメントを表示
Good day.Is there a way to create pentad average in Matlab?. Thanks.
0 件のコメント
採用された回答
Yash Totla
2019 年 7 月 9 日
You can calculate the 5 point moving average using the MATLAB function movmean
pentadAvg = movmean(dataArray, 5)
2 件のコメント
Yash Totla
2019 年 7 月 9 日
movmean will return the 5 day moving average
pentadAvg(3) = average(day1, day2, day3, day4, day5)
pentadAvg(4) = average(day2, day3, day4, day5, day6)
Are you expecting the following result instead
pentad(1) = average(day1, day2, day3, day4, day5)
pentad(2) = average(day6, day7, day8, day9, day10)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Numeric Types についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!