How to make a bandpass filter to only let 1-2 Hz of our signal pass?

2 views (last 30 days)
I'm trying to make a bandpass filter for a signal so I can find the single frequency when I take the fourier transform of the signal. I only want frequencies between 1-2 Hz.

Answers (1)

Star Strider
Star Strider on 30 Nov 2018
If you have R2018a or later, use the bandpass (link) function. It designs an efficient elliptical filter.
If you use the second ‘d’ (digital filter object) output, use filtfilt to filter your signal with it, not filter as in the documentation.

Categories

Find more on Transforms and Spectral Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!