You are on page 1of 2

PROGRAM NO :- 10

AIM: To Study CHEBYSHEV TYPE-1 Analog filters (High pass filter).

THEORY:-

ALGORITHM:-

1. Get the passband and stopband ripples.

2. Get the passband and stopband edge frequencies.

3. Get the sampling frequency.

4. Calculate the order of the filter.

5. Find the filter coefficient.

6. Draw the magnitude and phase responses.

PROGRAM:-
clc;
close all;
clear all;
format long
rp=input('enter the passband ripple...');
rs=input('enter the stopband ripple...');
wp=input('enter the passband frequency...');
ws=input('enter the stopband frequency...');
fs=input('enter the sampling frequency...');
w1=2*wp/fs;w2=2*ws/fs;
[n,wn]=cheb1ord(w1,w2,rp,rs,'s');
[b,a]=cheby1(n,rp,wn,’high’,'s');
w=0:.01:pi;
[h,om]=freqs(b,a,w);
m=20*log10(abs(h));
an=angle(h);
subplot(2,1,1);
plot(om/pi,m);
ylabel('gain in db----');
xlabel('(a)normalised frequency----');
subplot(2,1,2);
plot(om/pi,an);
xlabel('(b)normalised frequency---'); ylabel('phase in
radians---');

EXAMPLE:-
Enter the passband ripple… 0.29
Enter the stopband ripple… 29
Enter the passband frequency… 900
Enter the stopband frequency… 1300
Enter the sampling frequency… 7500

WAVEFORM:-

-50
gain in db---->

-100

-150

-200
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
(a)normalised frequency---->

4
phase in radians--->

-2

-4
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
(b)normalised frequency--->

You might also like