Effacer les filtres
Effacer les filtres

plotting the magnitude and phase response of a 3rd order low pass filter defined by the equation y(n)

11 vues (au cours des 30 derniers jours)
Using MATLAB implement a code to plot the magnitude and phase response of a 3rd order low pass filter defined by the equation:
y(n) = 0.0181x(n)+0.0543x(n-1)+0.0543x(n-2)+0.0181x(n-3)+1.76y(n-1)-1.1829y(n-2)+0.2781y(n-3)

Réponse acceptée

Chunru
Chunru le 25 Août 2021
% y(n) = 0.0181x(n)+0.0543x(n-1)+0.0543x(n-2)+0.0181x(n-3)+1.76y(n-1)-1.1829y(n-2)+0.2781y(n-3)
b = [0.0181 0.0543 0.0543 0.0181];
a = [1 -1.76 1.1829 -0.2781];
freqz(b, a, 1024);
  3 commentaires
Chunru
Chunru le 25 Août 2021
Modifié(e) : Chunru le 25 Août 2021
n=1024 for number of frequency points in evaluating frequenct response. doc freqz for details.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by