You are on page 1of 3

EX.

NO: 4 DESIGN OF

DATE: INFINITE IMPULSE RESPONSE FILTERS


AIM:
To design the infinite impulse response filters
using mat lab

PROGRAM:

BUTTERWORTH LOWPASS FILTER :

N = 7; % Order
Fc = 0.5; % Cutoff Frequency

% Construct an FDESIGN object and call its BUTTER


method.

h = fdesign.lowpass('N,F3dB', N, Fc);

Hd = design(h, 'butter');

BUTTERWORTH HIGHPASS FILTER :

N = 5; % Order
Fc = 0.5; % Cutoff Frequency

% Construct an FDESIGN object and call its BUTTER


method.

h = fdesign.highpass('N,F3dB', N, Fc);

Hd = design(h, 'butter');

CHEBYSHEV TYPE I BANDPASS FILTER :


N = 6; % Order
Fpass1 = 0.1; % First Passband Frequency
Fpass2 = 0.6; % Second Passband Frequency
Apass = 1; % Passband Ripple (dB)

% Construct an FDESIGN object and call its CHEBY1


method.

h = fdesign.bandpass('N,Fp1,Fp2,Ap', N, Fpass1,
Fpass2, Apass);

Hd = design(h, 'cheby1');

CHEBYSHEV TYPE I BANDSTOP FILTER :

N = 6; % Order
Fpass1 = 0.2; % First Passband Frequency
Fpass2 = 0.7; % Second Passband Frequency
Apass = 1; % Passband Ripple (dB)

% Construct an FDESIGN object and call its CHEBY1


method.

h = fdesign.bandstop('N,Fp1,Fp2,Ap', N, Fpass1,
Fpass2, Apass);

Hd = design(h, 'cheby1');

RESULT:
Thus, the infinite impulse response filters
are designed using mat lab.

You might also like