I was wondering what is the proper way to apply lets say a lowpass Butterworth filter and a hamming window into a sound i just loaded in Matlab?
Thanks in advance.
Best Answer
Not sure why you want to apply both the Hamming window and use the Butterworth filter. But say you have the Butterworth filter as coefficients B and A, then use:
output = filter(B,A,input);
If you have the Butterworth filter as a filter object, Hd,
output = filter(Hd,input);
If you wanted to apply the Hamming window before you filter,
There is a subtle difference between the specification of an IIR filter and an FIR filter. Because you are designing an FIR filter, you need to use 'N,Fc1,Fc2' instead of 'N,F3dB1,F3dB2'. Here is an example
Best Answer