Anda di halaman 1dari 2

Experiment No.

:- 10

AIM: To obtain the output frequency response of Digital Butterworth IIR filter using Impulse
Invariant and Bilinear Transformation.

PROGRAM:-

Frequency Response using Impulse invariant method

Fs = 5000; % sampling frequency


fc = 700; % cutoff frequency
WC = 2*pi*fc; % cutoff frequency in radian
N=5; % filter order
[b,a] = butter(N,WC,'s'); % create an analog filter
[z, p, k] = butter(N, WC, 's');
[bz, az] = impinvar(b,a,Fs); % determine coeffs of IIR filter
[h, f] = freqz(bz, az, 512,Fs);
plot(f, 20*log10(abs(h))), grid
xlabel('Frequency (Hz)')
ylabel('Magnitude (dB)')

Frequency Response using Bilinear Transformation method

Fs = 5000; % sampling frequency


FN = Fs/2;
fc = 100; % cutoff frequency
N = 5;
[z, p, k] = butter(N, fc/FN);
[h, f] = freqz(k*poly(z), poly(p), 512, Fs);
plot(f, 20*log10(abs(h))), grid
ylabel('Magnitude (dB)')
xlabel('Frequency (Hz)')
OUTPUT:-

IMPULSE INVARIANT
10

-10
Magnitude (dB)

-20

-30

-40

-50

-60
0 500 1000 1500 2000 2500
Frequency (Hz)

BILINEAR TRANSFORMATION

Anda mungkin juga menyukai