Effacer les filtres
Effacer les filtres

Plotting frequency response from fdatool filter coefficients?

1 vue (au cours des 30 derniers jours)
Dick Rusell
Dick Rusell le 18 Oct 2014
Commenté : Star Strider le 18 Oct 2014
I created a 400 order bandpass fir filter using fdatool and exported the coefficients. How do I create the frequency response using the coefficients I just made?

Réponse acceptée

Star Strider
Star Strider le 18 Oct 2014
Modifié(e) : Star Strider le 18 Oct 2014
The easiest way is to use the freqz function to display it. It will also calculate the frequency response and output it as a function of frequency. Use the phasez function for the phase.
  2 commentaires
Dick Rusell
Dick Rusell le 18 Oct 2014
so would it just be if Win was the variable for the coefficients:
Win = coefficients
Hd = freqz(Win, 1, omega);
like that?
Star Strider
Star Strider le 18 Oct 2014
That would work, with ‘omega’ being a vector of normalised frequencies, giving you the frequency response at those frequencies in ‘Hd’. Note that ‘Hd’ is a complex frequency vector, so you can calculate both amplitude and phase from it.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by