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!