Function for Calculating Moving sum
이전 댓글 표시
Is there any function to calculate moving sum of a vector? I use "smooth" for calculating the moving average of a vector
댓글 수: 1
F.
2012년 7월 16일
I'm sorry but I don't understand "moving sum of a vector" ... Could you explain it and give a little exemple ? thanks
채택된 답변
추가 답변 (1개)
Jonathan Sullivan
2012년 7월 16일
help filter
doc filter
Example: Take a 10 element moving average.
x = rand(1e3,1);
n = 10;
x_moving_average = filter(ones(1,n)/n,1,x);
카테고리
도움말 센터 및 File Exchange에서 Correlation and Convolution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!