Professional Documents
Culture Documents
To Design The Infinite Impulse Response Filters Using Mat Lab
To Design The Infinite Impulse Response Filters Using Mat Lab
NO: 4 DESIGN OF
PROGRAM:
N = 7; % Order
Fc = 0.5; % Cutoff Frequency
h = fdesign.lowpass('N,F3dB', N, Fc);
Hd = design(h, 'butter');
N = 5; % Order
Fc = 0.5; % Cutoff Frequency
h = fdesign.highpass('N,F3dB', N, Fc);
Hd = design(h, 'butter');
h = fdesign.bandpass('N,Fp1,Fp2,Ap', N, Fpass1,
Fpass2, Apass);
Hd = design(h, 'cheby1');
N = 6; % Order
Fpass1 = 0.2; % First Passband Frequency
Fpass2 = 0.7; % Second Passband Frequency
Apass = 1; % Passband Ripple (dB)
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.