How to perform moving average?
조회 수: 2 (최근 30일)
이전 댓글 표시
How do I calculate the moving average of an array? For instance I want to average 20 points in a list of say 100 points in a data. So the first data point will be divided by 1 and the second will be the summation of the first and second divided by 2 and the third will be the summation of the first three divided by 3 and till the 20th data point will be the summation of the first 20 data divided by 20 and the 21st data point will be the summation of the previous 19 including itself divided by twenty and move on till the 100?
댓글 수: 1
KSSV
2016년 11월 25일
Have you checked this? https://in.mathworks.com/matlabcentral/fileexchange/41859-moving-average-function
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!