MATLAB: Moving average.

moving averagesmootheningsound wave

I have a sound signal that I nee to create smoothening with a 3 ms window this is like a moving average. the sampling rate is 44.1/msec. How can I do this?

Best Answer

That would be a 132 point moving average filter, which you can do with
b = 1/132*ones(132,1);
output = filter(b,1,input);
Related Question