Function for Calculating Moving sum
Ältere Kommentare anzeigen
Is there any function to calculate moving sum of a vector? I use "smooth" for calculating the moving average of a vector
1 Kommentar
F.
am 16 Jul. 2012
I'm sorry but I don't understand "moving sum of a vector" ... Could you explain it and give a little exemple ? thanks
Akzeptierte Antwort
Weitere Antworten (1)
Jonathan Sullivan
am 16 Jul. 2012
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);
Kategorien
Mehr zu Correlation and Convolution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!