How to calculate passband and stopband coefficients for signal filtering?

3 views (last 30 days)
Hello Star Strider,
I have a signal, that is a well log Acoustic Impedance log and I need to apply a Antialias filter in coarser samoling that means a bandpass filter.
Sample frequency is 6562 per kilometer (28000 sample/4.27km). I do need to identify cutt off frequencies correctly. I applied your passband code into my dataset but my proffessors says: apply an anti-alias filter that has a flat spectrum over the band of interest. Would you please direct me how I can identify cutoff frequencies? Appreciated!

Accepted Answer

Star Strider
Star Strider on 3 Nov 2020
If you are concerned with an anti-aliasing filter for the time-domain signal, you need to go back and design a hardware Bessel (besself) lowpass anti-aliasing filter with a cutoff frequency that is equal to the Nyquist frequency (half the sampling frequency), then do the sampling. Frequencies higher than the Nyquist frequency are already aliased in your signal and now cannot be removed.
The frequency of ‘6562 per kilometer’ is obviously a spatial frequency, and I assume normal signal processing approaches would apply, so use the lowpass function, or design your own elliptic filter (ellip and related functions), each with a cutoff frequency of 3218 samples/km, as the anti-aliasing filter. Use filtfilt to do the actual filtering.
Then do whatever signal processing you want on the remaining signal. Use a highpass or bandpass filter to eliminate baseline offset and baseline drift. Using elliptic filters to do these are also straightforward to design in MATLAB.

Sign in to comment.

More Answers (1)

Maria Amr
Maria Amr on 4 Nov 2020
Yes. I saw it just now and I done. Thank you!


Find more on Signal Generation and Preprocessing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!