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

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (1)

Star Strider
Star Strider il 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.

Categorie

Scopri di più su Transforms and Spectral Analysis in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by