MATLAB: Need help with band pass filter!

bandpass filterbeginnerfast fourier transform

I am told to design a bandpass filter but I used the function bandpass in matlab instead. But when I try it on the frequency-domain data, it gives me some negative value, which is supposed to be positive.

Best Answer

Although designed in the frequency domain, digital filters created by bandpass and most other functions operate in the time domain.
If you want to see the effects of the filter in the frequency domain, use the fft (link) function on your time domain signals before filtering and after filtering.