Hi! I have this problem:
The idea of mean filtering is simply to replace each value in a signal with the mean (average) value of its neighbors. A mean filter is widely used for noise reduction.
Start by adding some random noise to a signal (use the file echo_1.wav or any other speech data file). Then, use mean filtering to reduce the introduced noise. More specifically, take the following steps:
- Normalize the signal values in the range [0 1].
- Add random noise to the signal by using the function randn. Set the noise level as a control.
- Convolve the noise-added signal with a mean filter. This filter can be designed by taking an odd number of ones and dividing by the size. For example, a 1×3 size mean filter is given by [1/3 1/3 1/3] and a 1×5size mean filter by [1/5 1/5 1/5 1/5 1/5]. Set the size of the mean filter as an odd number control (3, 5 or 7, for example).
I need some help in this problem, I don't know how to normalize the signal and I have no idea how to use convolution here. Thanks for your help.