SlideShare a Scribd company logo
1 of 18
Download to read offline
ROORKEE COLLEGE OF
ENGINEERING, ROORKEE
UNDER THE GUIDANCE OF:
īļ Miss. RUCHITA SINGH
(Asst. Professor, EEE Dept.)
ROORKEE COLLEGE OF
ENGINEERING, ROOORKEE
BY – PRASHANT SRIVASTAV
ROLL NO. - 661020108001
B.Tech.- EEE (Vth
sem.)
INDEX
SR.NO. NAME OF PROGRAM DATE TEACHERS’REMARK
1 WAVE FORM
GENERATION
2 LINEAR CONVOLUTION
3 DESIGN OF
BUTTERWORTH FILTER:
(I) ANALOG LOW PASS FILTER
(II) DIGITAL BANDPASS
FILTER
4 AUTOCORRELATION
5 DESIGN OF CHEBYSHEV
DIGITAL FILTER
(I) TYPE – I BANDPASS
(II) TYPE – II BANDPASS
(III) TYPE –II BANDSTOP
6 FFT & IFFT WITHOUT
USING FUNCTION
7 DESIGN OF FIR FILTER BY
USING HANNING
WINDOW
8 DESIGN OF FIR FILTER BY
USING CHEBYSHEV
WINDOW
1.WAVE FORM GENERATION
COSINE WAVE
ī‚ˇ t=0:.01:pi;
ī‚ˇ y=cos(2*pi*t);
ī‚ˇ subplot(2,1,1);plot (t,y);ylabel('amplitude -->');
ī‚ˇ xlabel('(b) n -->');
GENERATION OF EXPONENTIAL SIGNAL
1. n=input('enter the length of the exponential sequence');
2. t=0:n;
3. a=input('enter the a value');
4. y2=exp(a*t);
5. subplot(2,2,4);
6. stem(t,y2);
7. ylabel('Amplitude -->');
8. xlabel('(d) n -->');
Enter the length of the exponential sequence'
Enter the a value'
GENERATION OF UNIT IMPULSE
1. t=-2:1:2;
2. y=[zeros(1,2),ones(1,1),zeros(1,2)];
3. subplot(2,2,1);
4. stem(t,y);
5. ylabel('amplitude_ _>');
6. xlabel('(a)n_ _>');
GENERATION OF UNIT STEP SEQUENCE
1. n=input('enter the N value');
2. t=0:1:n-1;
3. y1=ones(1,n);
4. subplot(2,2,2);
5. stem(t,y1);
6. ylabel('amplitude_ _>');
7. xlabel('(b)n_ _>');
enter the “n” values.
GENERATION OF RAMP SEQUENCE
1. n=input('enter the length of the ramp sequence');
2. t=0:n;
3. subplot(2,2,3);
4. stem(t,t);
5. ylabel('amplitude -->');
6. xlabel('(c) n -->');
„Enter the length of the ramp sequence'
SINE WAVE
ī‚ˇ t=0:.01:pi;
ī‚ˇ y=sin(2*pi*t);figure(2);
ī‚ˇ subplot(2,1,1);plot (t,y);ylabel('amplitude -->');
ī‚ˇ xlabel('(a) n -->');
2.LINEAR CONVOLUTION
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ close all;
ī‚ˇ x=input('enter the 1st sequence');
ī‚ˇ h=input('enter the 2nd sequence');
ī‚ˇ y=conv(x,h);
ī‚ˇ figure;subplot(3,1,1);
ī‚ˇ stem(x);
ī‚ˇ ylabel('amplitude -->');
ī‚ˇ xlabel('(a) n -->');
ī‚ˇ subplot(3,1,2);
ī‚ˇ stem(h);ylabel('amplitude -->');
ī‚ˇ xlabel('(b) n -->');
ī‚ˇ subplot(3,1,3);
ī‚ˇ stem(y);ylabel('amplitude -->');
ī‚ˇ xlabel('(c) n -->');
ī‚ˇ disp('the resultant signal is ');y
example,
1st
sequence – [1, 2]
2nd
sequence – [1, 2, 4]
3.DESIGN OF BUTTERWORTH FILTER
ANALOG LOW PASS FILTER
1. clc;
2. close all;
3. clear all;
4. format long
5. rp=input('enter the passband ripple');
6. rs=input('enter the stopband ripple');
7. wp=input('enter the passband freq');
8. ws=input('enter the stopband freq');
9. fs=input('enter the sampling freq');
10.w1=2*wp/fs;w2=2*ws/fs;
11.[n,wn]=buttord(w1,w2,rp,rs,'s');
12.[z,p,k]=butter(n,wn);
13.[b,a]=zp2tf(z,p,k);
14.[b,a]=butter(n,wn,'s');
15.w=0:.01:pi;
16.[h,om]=freqs(b,a,w);
17.m=20*log10(abs(h));
18.an=angle(h);
19.subplot(2,1,1);
20.plot(om/pi,m);
21.ylabel('Gain in dB --.');
22.xlabel('(a) Normalised frequency --.');
23.subplot(2,1,2);
24.plot(om/pi,an);
25.xlabel('(b) Normalised frequency --.');
26.ylabel('Phase in radians --.');
Example:
ī‚ˇ enter the passband ripple 0.15
ī‚ˇ enter the stopband ripple 60
ī‚ˇ enter the passband freq 1500
ī‚ˇ enter the stopband freq 3000
ī‚ˇ enter the stopband freq 7000
DIGITAL BANDPASS FILTER
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ 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] = buttord(w1,w2,rp,rs);
ī‚ˇ wn = [w1 w2];
ī‚ˇ [b,a] = butter(n,wn,'bandpass');
ī‚ˇ w = 0:0.01:pi;
ī‚ˇ [h,om] = freqz(b,a,w);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ an = angle(h);
ī‚ˇ subplot(2,1,1);
ī‚ˇ plot(om/pi,m);
ī‚ˇ subplot(2,1,1);
ī‚ˇ plot(om/pi,m);
ī‚ˇ title('Magnitude Response');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ subplot(2,1,2);
ī‚ˇ plot(om/pi,an);
ī‚ˇ title('Phase Response');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ ylabel('Phase in radians ---->');
ī‚ˇ grid on;
ī‚ˇ Enter the passband ripple = 0.2
ī‚ˇ Enter the stopband ripple = 40
ī‚ˇ Enter the passband frequency = 1500
ī‚ˇ Enter the stopband frequency = 2000
ī‚ˇ Enter the sampling frequency = 9000
4.AUTO-CORRELATION
Algorithm:
1. Get the signal x(n)of length N in matrix form
2. The correlated signal is denoted as y(n)
3. y(n)is given by the formula
y(n) 5 [ ( ) ( )] x k x k n k − =−∞ ∞ ∑ where n52(N 2 1) to (N 2 1)
5.DESIGN OF CHEBYSHEV
DIGITAL FILTER
TYPE-I BAND PASS FILTER
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ 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] = cheb1ord(w1,w2,rp,rs,'s');
ī‚ˇ wn = [w1 w2];
ī‚ˇ [b,a] = cheby1(n,rp,wn,'bandpass','s');
ī‚ˇ w = 0: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);
ī‚ˇ subplot(2,1,1);
ī‚ˇ plot(om/pi,m);
ī‚ˇ title('Magnitude Response');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ subplot(2,1,2);
ī‚ˇ plot(om/pi,an);
ī‚ˇ title('Phase Response');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ ylabel('Phase in radians ---->');
ī‚ˇ grid on;
ī‚ˇ Enter the passband ripple = 0.3
ī‚ˇ Enter the stopband ripple = 40
ī‚ˇ Enter the passband frequency = 1400
ī‚ˇ Enter the stopband frequency = 2000
ī‚ˇ Enter the sampling frequency = 5000
CHEBYSHEV TYPE-2 BANDSTOP FILTER
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ 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] = cheb2ord(w1,w2,rp,rs);
ī‚ˇ wn = [w1 w2];
ī‚ˇ [b,a] = cheby2(n,rs,wn,'stop');
ī‚ˇ w = 0:0.1/pi:pi;
ī‚ˇ [h,om] = freqz(b,a,w);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ an = angle(h);
ī‚ˇ subplot(2,1,1);
ī‚ˇ plot(om/pi,m);
ī‚ˇ subplot(2,1,1);
ī‚ˇ plot(om/pi,m);
ī‚ˇ title('Magnitude Response');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ subplot(2,1,2);
ī‚ˇ plot(om/pi,an);
ī‚ˇ title('Phase Response');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ ylabel('Phase in radians ---->');
ī‚ˇ grid on;
ī‚ˇ Enter the passband ripple = 0.3
ī‚ˇ Enter the stopband ripple = 46
ī‚ˇ Enter the passband frequency = 1400
ī‚ˇ Enter the stopband frequency = 2000
ī‚ˇ Enter the sampling frequency = 8000
CHEBYSHEV TYPE-I BANDSTOP FILTER
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ 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] = cheb1ord(w1,w2,rp,rs);
ī‚ˇ wn = [w1 w2];
ī‚ˇ [b,a] = cheby1(n,rp,wn,'stop');
ī‚ˇ w = 0:0.1/pi:pi;
ī‚ˇ [h,om] = freqz(b,a,w);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ an = angle(h);
ī‚ˇ subplot(2,1,1);
ī‚ˇ plot(om/pi,m);
ī‚ˇ subplot(2,1,1);
ī‚ˇ plot(om/pi,m);
ī‚ˇ title('Magnitude Response');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ subplot(2,1,2);
ī‚ˇ plot(om/pi,an);
ī‚ˇ title('Phase Response');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ ylabel('Phase in radians ---->');
ī‚ˇ grid on;
ī‚ˇ Enter the passband ripple = 0.25
ī‚ˇ Enter the stopband ripple = 40
ī‚ˇ Enter the passband frequency = 2500
ī‚ˇ Enter the stopband frequency = 2750
ī‚ˇ Enter the sampling frequency = 7000
>>
6.FFT & IFFT WITHOUT USING
FUNCTION
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ x = input('Enter the input sequence = ');
ī‚ˇ N = length(x);
ī‚ˇ for k = 1:N
ī‚ˇ y(k) = 0;
ī‚ˇ for n = 1:N
ī‚ˇ y(k) = y(k)+x(n)*exp(-1i*2*pi*(k-1)*(n-1)/N);
ī‚ˇ end
ī‚ˇ end
ī‚ˇ %code block to plot the input sequence
ī‚ˇ t = 0:N-1;
ī‚ˇ subplot(2,2,1);
ī‚ˇ stem(t,x);
ī‚ˇ ylabel('Amplitude ---->');
ī‚ˇ xlabel('n ---->');
ī‚ˇ title('Input Sequence');
ī‚ˇ grid on;
ī‚ˇ magnitude = abs(y); % Find the magnitudes of individual FFT points
ī‚ˇ disp('FFT Sequence = ');
ī‚ˇ disp(magnitude);
ī‚ˇ %code block to plot the FFT sequence
ī‚ˇ t = 0:N-1;
ī‚ˇ subplot(2,2,2);
ī‚ˇ stem(t,magnitude);
ī‚ˇ ylabel('Amplitude ---->');
ī‚ˇ xlabel('K ---->');
ī‚ˇ title('FFT Sequence');
ī‚ˇ grid on;
ī‚ˇ R = length(y);
ī‚ˇ for n = 1:R
ī‚ˇ x1(n) = 0;
ī‚ˇ for k = 1:R
ī‚ˇ x1(n) = x1(n)+(1/R)*y(k)*exp(1i*2*pi*(k-1)*(n-1)/R);
ī‚ˇ end
ī‚ˇ end
ī‚ˇ %code block to plot the IFFT sequence
ī‚ˇ t = 0:R-1;
ī‚ˇ subplot(2,2,3);
ī‚ˇ stem(t,x1);
ī‚ˇ disp('IFFT Sequence = ');
ī‚ˇ disp(x1);
ī‚ˇ ylabel('Amplitude ---->');
ī‚ˇ xlabel('n ---->');
ī‚ˇ title('IFFT sequence');
ī‚ˇ grid on;
Enter the input sequence = [1 4 2 5 2]
FFT Sequence =
14.0000 2.8124 4.3692 4.3692 2.8124
IFFT Sequence =
Columns 1 through 4
1.0000 - 0.0000i 4.0000 - 0.0000i 2.0000 - 0.0000i 5.0000 + 0.0000i
Column 5
2.0000 + 0.0000i
7.FIR USING HANNING WINDOW
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ rp = input('Enter the passband ripple = ');
ī‚ˇ rs = input('Enter the stopband ripple = ');
ī‚ˇ fp = input('Enter the passband frequency = ');
ī‚ˇ fs = input('Enter the stopband frequency = ');
ī‚ˇ f = input('Enter the sampling frequency = ');
ī‚ˇ wp = 2*fp/f;
ī‚ˇ ws = 2*fs/f;
ī‚ˇ num = -20*log10(sqrt(rp*rs))-13;
ī‚ˇ dem = 14.6*(fs-fp)/f;
ī‚ˇ n = ceil(num/dem);
ī‚ˇ n1 = n+1;
ī‚ˇ if (rem(n,2)~=0)
ī‚ˇ n1 = n;
ī‚ˇ n = n-1;
ī‚ˇ end
ī‚ˇ y = hanning(n1);
ī‚ˇ % low-pass filter
ī‚ˇ b = fir1(n,wp,y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,1);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of LPF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ % high-pass filter
ī‚ˇ b = fir1(n,wp,'high',y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,2);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of HPF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ % band pass filter
ī‚ˇ wn = [wp ws];
ī‚ˇ b = fir1(n,wn,y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,3);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of BPF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ % band stop filter
ī‚ˇ b = fir1(n,wn,'stop',y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,4);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of BSF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ OUTPUT:
ī‚ˇ Enter the passband ripple = 0.03
ī‚ˇ Enter the stopband ripple = 0.01
ī‚ˇ Enter the passband frequency = 1400
ī‚ˇ Enter the stopband frequency = 2000
ī‚ˇ Enter the sampling frequency = 8000
8. FIR FILTER USING
CHEBYSHEV WINDOW
ī‚ˇ clc;
ī‚ˇ clear all;
ī‚ˇ rp = input('Enter the passband ripple = ');
ī‚ˇ rs = input('Enter the stopband ripple = ');
ī‚ˇ fp = input('Enter the passband frequency = ');
ī‚ˇ fs = input('Enter the stopband frequency = ');
ī‚ˇ f = input('Enter the sampling frequency = ');
ī‚ˇ r = input('Enter the ripple value(in dBs) = ');
ī‚ˇ wp = 2*fp/f;
ī‚ˇ ws = 2*fs/f;
ī‚ˇ num = -20*log10(sqrt(rp*rs))-13;
ī‚ˇ dem = 14.6*(fs-fp)/f;
ī‚ˇ n = ceil(num/dem);
ī‚ˇ if(rem(n,2)==0)
ī‚ˇ n = n+1;
ī‚ˇ end
ī‚ˇ y = chebwin(n,r);
ī‚ˇ % low-pass filter
ī‚ˇ b = fir1(n-1,wp,y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,1);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of LPF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ % high-pass filter
ī‚ˇ b = fir1(n-1,wp,'high',y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,2);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of HPF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ % band pass filter
ī‚ˇ wn = [wp ws];
ī‚ˇ b = fir1(n-1,wn,y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,3);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of BPF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ % band stop filter
ī‚ˇ b = fir1(n-1,wn,'stop',y);
ī‚ˇ [h,o] = freqz(b,1,256);
ī‚ˇ m = 20*log10(abs(h));
ī‚ˇ subplot(2,2,4);
ī‚ˇ plot(o/pi,m);
ī‚ˇ title('Magnitude Response of BSF');
ī‚ˇ ylabel('Gain in dB ---->');
ī‚ˇ xlabel('Normalised Frequency ---->');
ī‚ˇ grid on;
ī‚ˇ OUTPUT:
ī‚ˇ Enter the passband ripple = 0.03
ī‚ˇ Enter the stopband ripple = 0.02
ī‚ˇ Enter the passband frequency = 1800
ī‚ˇ Enter the stopband frequency = 2400
ī‚ˇ Enter the sampling frequency = 10000
ī‚ˇ Enter the ripple value(in dBs) = 40

More Related Content

What's hot

Superhetrodyne receiver
Superhetrodyne receiverSuperhetrodyne receiver
Superhetrodyne receiverlrsst
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation pptsanjeev2419
 
Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...Nidhi Baranwal
 
digital signal processing lecture 1.pptx
digital signal processing lecture 1.pptxdigital signal processing lecture 1.pptx
digital signal processing lecture 1.pptxImranHasan760046
 
Basics of Digital Filters
Basics of Digital FiltersBasics of Digital Filters
Basics of Digital Filtersop205
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Gourab Ghosh
 
Matched filter
Matched filterMatched filter
Matched filtersrkrishna341
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals MdFazleRabbi18
 
Digital signal processor architecture
Digital signal processor architectureDigital signal processor architecture
Digital signal processor architecturekomal mistry
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKnaimish12
 
Windowing techniques of fir filter design
Windowing techniques of fir filter designWindowing techniques of fir filter design
Windowing techniques of fir filter designRohan Nagpal
 
digital signal-processing-lab-manual
digital signal-processing-lab-manualdigital signal-processing-lab-manual
digital signal-processing-lab-manualAhmed Alshomi
 
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGDIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGSnehal Hedau
 
RF Transceivers
RF TransceiversRF Transceivers
RF TransceiversRitul Sonania
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filtersop205
 
Fundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question BankFundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question BankMathankumar S
 
Butterworth filter
Butterworth filterButterworth filter
Butterworth filterMOHAMMAD AKRAM
 
Structures for FIR systems
Structures for FIR systemsStructures for FIR systems
Structures for FIR systemsChandan Taluja
 

What's hot (20)

Superhetrodyne receiver
Superhetrodyne receiverSuperhetrodyne receiver
Superhetrodyne receiver
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation ppt
 
Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...
 
digital signal processing lecture 1.pptx
digital signal processing lecture 1.pptxdigital signal processing lecture 1.pptx
digital signal processing lecture 1.pptx
 
Basics of Digital Filters
Basics of Digital FiltersBasics of Digital Filters
Basics of Digital Filters
 
Digital signal processing part1
Digital signal processing part1Digital signal processing part1
Digital signal processing part1
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)
 
Matched filter
Matched filterMatched filter
Matched filter
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals
 
Digital signal processor architecture
Digital signal processor architectureDigital signal processor architecture
Digital signal processor architecture
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASK
 
Windowing techniques of fir filter design
Windowing techniques of fir filter designWindowing techniques of fir filter design
Windowing techniques of fir filter design
 
digital signal-processing-lab-manual
digital signal-processing-lab-manualdigital signal-processing-lab-manual
digital signal-processing-lab-manual
 
Dsp ppt
Dsp pptDsp ppt
Dsp ppt
 
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGDIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSING
 
RF Transceivers
RF TransceiversRF Transceivers
RF Transceivers
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filters
 
Fundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question BankFundamentals of Digital Signal Processing - Question Bank
Fundamentals of Digital Signal Processing - Question Bank
 
Butterworth filter
Butterworth filterButterworth filter
Butterworth filter
 
Structures for FIR systems
Structures for FIR systemsStructures for FIR systems
Structures for FIR systems
 

Similar to DIGITAL SIGNAL PROCESSING BASED ON MATLAB

Matlab fair-record-model
Matlab fair-record-modelMatlab fair-record-model
Matlab fair-record-modelajaydev1111
 
Dsp manual
Dsp manualDsp manual
Dsp manualpramod naik
 
Matlab dsp examples
Matlab dsp examplesMatlab dsp examples
Matlab dsp examplesumarjamil10000
 
Project filter matlab
Project  filter matlabProject  filter matlab
Project filter matlabgirma disasa
 
StewartPlatform_cpp
StewartPlatform_cppStewartPlatform_cpp
StewartPlatform_cppCarlos Alonso
 
The Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorThe Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorAbhranil Das
 
Implementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlabImplementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlabmafailmi
 
Fourier series example
Fourier series exampleFourier series example
Fourier series exampleAbi finni
 
Basic simulation lab manual1
Basic simulation lab manual1Basic simulation lab manual1
Basic simulation lab manual1Janardhana Raju M
 
Ecg
EcgEcg
Ecgtoi_sat
 
Matlab 2
Matlab 2Matlab 2
Matlab 2asguna
 
Geometric calculator with python language
Geometric calculator with python languageGeometric calculator with python language
Geometric calculator with python languagemohamedismail111079
 
Compte rendu com op touati
Compte rendu com op touatiCompte rendu com op touati
Compte rendu com op touatihamdinho
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1Assignmentpedia
 

Similar to DIGITAL SIGNAL PROCESSING BASED ON MATLAB (20)

Matlab fair-record-model
Matlab fair-record-modelMatlab fair-record-model
Matlab fair-record-model
 
Dsp manual
Dsp manualDsp manual
Dsp manual
 
Matlab dsp examples
Matlab dsp examplesMatlab dsp examples
Matlab dsp examples
 
Project filter matlab
Project  filter matlabProject  filter matlab
Project filter matlab
 
StewartPlatform_cpp
StewartPlatform_cppStewartPlatform_cpp
StewartPlatform_cpp
 
Ecg programa simulado
Ecg programa simuladoEcg programa simulado
Ecg programa simulado
 
The Moore-Spiegel Oscillator
The Moore-Spiegel OscillatorThe Moore-Spiegel Oscillator
The Moore-Spiegel Oscillator
 
Implementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlabImplementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlab
 
fhss
fhssfhss
fhss
 
Sampling
SamplingSampling
Sampling
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
Sheet 2
Sheet 2Sheet 2
Sheet 2
 
Basic simulation lab manual1
Basic simulation lab manual1Basic simulation lab manual1
Basic simulation lab manual1
 
Ecg
EcgEcg
Ecg
 
Matlab 2
Matlab 2Matlab 2
Matlab 2
 
Dsp final
Dsp finalDsp final
Dsp final
 
Pdfcode
PdfcodePdfcode
Pdfcode
 
Geometric calculator with python language
Geometric calculator with python languageGeometric calculator with python language
Geometric calculator with python language
 
Compte rendu com op touati
Compte rendu com op touatiCompte rendu com op touati
Compte rendu com op touati
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1
 

More from Prashant Srivastav

THE NATIONALISM IN EUROPE OVERVIEW
THE NATIONALISM IN EUROPE OVERVIEWTHE NATIONALISM IN EUROPE OVERVIEW
THE NATIONALISM IN EUROPE OVERVIEWPrashant Srivastav
 
IMPLEMENTATION OF NAND GATE USING NPN TRANSISTOR
IMPLEMENTATION OF NAND GATE USING NPN TRANSISTORIMPLEMENTATION OF NAND GATE USING NPN TRANSISTOR
IMPLEMENTATION OF NAND GATE USING NPN TRANSISTORPrashant Srivastav
 
COMPUTER RELATED GENERAL ISSUES
COMPUTER RELATED GENERAL ISSUESCOMPUTER RELATED GENERAL ISSUES
COMPUTER RELATED GENERAL ISSUESPrashant Srivastav
 
INTRODUCTION TO NEURAL NETWORKS
INTRODUCTION TO NEURAL NETWORKSINTRODUCTION TO NEURAL NETWORKS
INTRODUCTION TO NEURAL NETWORKSPrashant Srivastav
 
COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)
COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)
COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)Prashant Srivastav
 
SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD
SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD
SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD Prashant Srivastav
 

More from Prashant Srivastav (9)

Solar Cell presentation
Solar Cell presentationSolar Cell presentation
Solar Cell presentation
 
THE NATIONALISM IN EUROPE OVERVIEW
THE NATIONALISM IN EUROPE OVERVIEWTHE NATIONALISM IN EUROPE OVERVIEW
THE NATIONALISM IN EUROPE OVERVIEW
 
Bhel report block 4
Bhel report block 4Bhel report block 4
Bhel report block 4
 
IMPLEMENTATION OF NAND GATE USING NPN TRANSISTOR
IMPLEMENTATION OF NAND GATE USING NPN TRANSISTORIMPLEMENTATION OF NAND GATE USING NPN TRANSISTOR
IMPLEMENTATION OF NAND GATE USING NPN TRANSISTOR
 
COMPUTER RELATED GENERAL ISSUES
COMPUTER RELATED GENERAL ISSUESCOMPUTER RELATED GENERAL ISSUES
COMPUTER RELATED GENERAL ISSUES
 
INTRODUCTION TO NEURAL NETWORKS
INTRODUCTION TO NEURAL NETWORKSINTRODUCTION TO NEURAL NETWORKS
INTRODUCTION TO NEURAL NETWORKS
 
COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)
COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)
COMPUTER BASED NUMERICAL AND STATISTICAL TECHNIQUES(CBNST)
 
SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD
SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD
SIMULATION OF PHOTO VOLTAIC CELL USING NEWTON-RAPHSON METHOD
 
Cellular system
Cellular system Cellular system
Cellular system
 

Recently uploaded

VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Recently uploaded (20)

VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

DIGITAL SIGNAL PROCESSING BASED ON MATLAB

  • 1. ROORKEE COLLEGE OF ENGINEERING, ROORKEE UNDER THE GUIDANCE OF: īļ Miss. RUCHITA SINGH (Asst. Professor, EEE Dept.) ROORKEE COLLEGE OF ENGINEERING, ROOORKEE BY – PRASHANT SRIVASTAV ROLL NO. - 661020108001 B.Tech.- EEE (Vth sem.)
  • 2. INDEX SR.NO. NAME OF PROGRAM DATE TEACHERS’REMARK 1 WAVE FORM GENERATION 2 LINEAR CONVOLUTION 3 DESIGN OF BUTTERWORTH FILTER: (I) ANALOG LOW PASS FILTER (II) DIGITAL BANDPASS FILTER 4 AUTOCORRELATION 5 DESIGN OF CHEBYSHEV DIGITAL FILTER (I) TYPE – I BANDPASS (II) TYPE – II BANDPASS (III) TYPE –II BANDSTOP 6 FFT & IFFT WITHOUT USING FUNCTION 7 DESIGN OF FIR FILTER BY USING HANNING WINDOW 8 DESIGN OF FIR FILTER BY USING CHEBYSHEV WINDOW
  • 3. 1.WAVE FORM GENERATION COSINE WAVE ī‚ˇ t=0:.01:pi; ī‚ˇ y=cos(2*pi*t); ī‚ˇ subplot(2,1,1);plot (t,y);ylabel('amplitude -->'); ī‚ˇ xlabel('(b) n -->'); GENERATION OF EXPONENTIAL SIGNAL 1. n=input('enter the length of the exponential sequence'); 2. t=0:n; 3. a=input('enter the a value'); 4. y2=exp(a*t); 5. subplot(2,2,4); 6. stem(t,y2); 7. ylabel('Amplitude -->'); 8. xlabel('(d) n -->'); Enter the length of the exponential sequence' Enter the a value'
  • 4. GENERATION OF UNIT IMPULSE 1. t=-2:1:2; 2. y=[zeros(1,2),ones(1,1),zeros(1,2)]; 3. subplot(2,2,1); 4. stem(t,y); 5. ylabel('amplitude_ _>'); 6. xlabel('(a)n_ _>'); GENERATION OF UNIT STEP SEQUENCE 1. n=input('enter the N value'); 2. t=0:1:n-1; 3. y1=ones(1,n); 4. subplot(2,2,2); 5. stem(t,y1); 6. ylabel('amplitude_ _>'); 7. xlabel('(b)n_ _>'); enter the “n” values.
  • 5. GENERATION OF RAMP SEQUENCE 1. n=input('enter the length of the ramp sequence'); 2. t=0:n; 3. subplot(2,2,3); 4. stem(t,t); 5. ylabel('amplitude -->'); 6. xlabel('(c) n -->'); „Enter the length of the ramp sequence' SINE WAVE ī‚ˇ t=0:.01:pi; ī‚ˇ y=sin(2*pi*t);figure(2); ī‚ˇ subplot(2,1,1);plot (t,y);ylabel('amplitude -->'); ī‚ˇ xlabel('(a) n -->');
  • 6. 2.LINEAR CONVOLUTION ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ close all; ī‚ˇ x=input('enter the 1st sequence'); ī‚ˇ h=input('enter the 2nd sequence'); ī‚ˇ y=conv(x,h); ī‚ˇ figure;subplot(3,1,1); ī‚ˇ stem(x); ī‚ˇ ylabel('amplitude -->'); ī‚ˇ xlabel('(a) n -->'); ī‚ˇ subplot(3,1,2); ī‚ˇ stem(h);ylabel('amplitude -->'); ī‚ˇ xlabel('(b) n -->'); ī‚ˇ subplot(3,1,3); ī‚ˇ stem(y);ylabel('amplitude -->'); ī‚ˇ xlabel('(c) n -->'); ī‚ˇ disp('the resultant signal is ');y example, 1st sequence – [1, 2] 2nd sequence – [1, 2, 4]
  • 7. 3.DESIGN OF BUTTERWORTH FILTER ANALOG LOW PASS FILTER 1. clc; 2. close all; 3. clear all; 4. format long 5. rp=input('enter the passband ripple'); 6. rs=input('enter the stopband ripple'); 7. wp=input('enter the passband freq'); 8. ws=input('enter the stopband freq'); 9. fs=input('enter the sampling freq'); 10.w1=2*wp/fs;w2=2*ws/fs; 11.[n,wn]=buttord(w1,w2,rp,rs,'s'); 12.[z,p,k]=butter(n,wn); 13.[b,a]=zp2tf(z,p,k); 14.[b,a]=butter(n,wn,'s'); 15.w=0:.01:pi; 16.[h,om]=freqs(b,a,w); 17.m=20*log10(abs(h)); 18.an=angle(h); 19.subplot(2,1,1); 20.plot(om/pi,m); 21.ylabel('Gain in dB --.'); 22.xlabel('(a) Normalised frequency --.'); 23.subplot(2,1,2); 24.plot(om/pi,an); 25.xlabel('(b) Normalised frequency --.'); 26.ylabel('Phase in radians --.'); Example: ī‚ˇ enter the passband ripple 0.15 ī‚ˇ enter the stopband ripple 60 ī‚ˇ enter the passband freq 1500 ī‚ˇ enter the stopband freq 3000 ī‚ˇ enter the stopband freq 7000
  • 8. DIGITAL BANDPASS FILTER ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ 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] = buttord(w1,w2,rp,rs); ī‚ˇ wn = [w1 w2]; ī‚ˇ [b,a] = butter(n,wn,'bandpass'); ī‚ˇ w = 0:0.01:pi; ī‚ˇ [h,om] = freqz(b,a,w); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ an = angle(h); ī‚ˇ subplot(2,1,1); ī‚ˇ plot(om/pi,m); ī‚ˇ subplot(2,1,1); ī‚ˇ plot(om/pi,m); ī‚ˇ title('Magnitude Response'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ subplot(2,1,2); ī‚ˇ plot(om/pi,an); ī‚ˇ title('Phase Response'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ ylabel('Phase in radians ---->'); ī‚ˇ grid on; ī‚ˇ Enter the passband ripple = 0.2 ī‚ˇ Enter the stopband ripple = 40 ī‚ˇ Enter the passband frequency = 1500 ī‚ˇ Enter the stopband frequency = 2000 ī‚ˇ Enter the sampling frequency = 9000
  • 9. 4.AUTO-CORRELATION Algorithm: 1. Get the signal x(n)of length N in matrix form 2. The correlated signal is denoted as y(n) 3. y(n)is given by the formula y(n) 5 [ ( ) ( )] x k x k n k − =−∞ ∞ ∑ where n52(N 2 1) to (N 2 1)
  • 10. 5.DESIGN OF CHEBYSHEV DIGITAL FILTER TYPE-I BAND PASS FILTER ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ 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] = cheb1ord(w1,w2,rp,rs,'s'); ī‚ˇ wn = [w1 w2]; ī‚ˇ [b,a] = cheby1(n,rp,wn,'bandpass','s'); ī‚ˇ w = 0: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); ī‚ˇ subplot(2,1,1); ī‚ˇ plot(om/pi,m); ī‚ˇ title('Magnitude Response'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ subplot(2,1,2); ī‚ˇ plot(om/pi,an); ī‚ˇ title('Phase Response'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ ylabel('Phase in radians ---->'); ī‚ˇ grid on; ī‚ˇ Enter the passband ripple = 0.3 ī‚ˇ Enter the stopband ripple = 40 ī‚ˇ Enter the passband frequency = 1400 ī‚ˇ Enter the stopband frequency = 2000 ī‚ˇ Enter the sampling frequency = 5000
  • 11. CHEBYSHEV TYPE-2 BANDSTOP FILTER ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ 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] = cheb2ord(w1,w2,rp,rs); ī‚ˇ wn = [w1 w2]; ī‚ˇ [b,a] = cheby2(n,rs,wn,'stop'); ī‚ˇ w = 0:0.1/pi:pi; ī‚ˇ [h,om] = freqz(b,a,w); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ an = angle(h); ī‚ˇ subplot(2,1,1); ī‚ˇ plot(om/pi,m); ī‚ˇ subplot(2,1,1); ī‚ˇ plot(om/pi,m); ī‚ˇ title('Magnitude Response'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ subplot(2,1,2); ī‚ˇ plot(om/pi,an); ī‚ˇ title('Phase Response'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ ylabel('Phase in radians ---->'); ī‚ˇ grid on; ī‚ˇ Enter the passband ripple = 0.3 ī‚ˇ Enter the stopband ripple = 46 ī‚ˇ Enter the passband frequency = 1400 ī‚ˇ Enter the stopband frequency = 2000 ī‚ˇ Enter the sampling frequency = 8000
  • 12. CHEBYSHEV TYPE-I BANDSTOP FILTER ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ 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] = cheb1ord(w1,w2,rp,rs); ī‚ˇ wn = [w1 w2]; ī‚ˇ [b,a] = cheby1(n,rp,wn,'stop'); ī‚ˇ w = 0:0.1/pi:pi; ī‚ˇ [h,om] = freqz(b,a,w); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ an = angle(h); ī‚ˇ subplot(2,1,1); ī‚ˇ plot(om/pi,m); ī‚ˇ subplot(2,1,1); ī‚ˇ plot(om/pi,m); ī‚ˇ title('Magnitude Response'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ subplot(2,1,2); ī‚ˇ plot(om/pi,an); ī‚ˇ title('Phase Response'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ ylabel('Phase in radians ---->'); ī‚ˇ grid on; ī‚ˇ Enter the passband ripple = 0.25 ī‚ˇ Enter the stopband ripple = 40 ī‚ˇ Enter the passband frequency = 2500 ī‚ˇ Enter the stopband frequency = 2750 ī‚ˇ Enter the sampling frequency = 7000 >>
  • 13. 6.FFT & IFFT WITHOUT USING FUNCTION ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ x = input('Enter the input sequence = '); ī‚ˇ N = length(x); ī‚ˇ for k = 1:N ī‚ˇ y(k) = 0; ī‚ˇ for n = 1:N ī‚ˇ y(k) = y(k)+x(n)*exp(-1i*2*pi*(k-1)*(n-1)/N); ī‚ˇ end ī‚ˇ end ī‚ˇ %code block to plot the input sequence ī‚ˇ t = 0:N-1; ī‚ˇ subplot(2,2,1); ī‚ˇ stem(t,x); ī‚ˇ ylabel('Amplitude ---->'); ī‚ˇ xlabel('n ---->'); ī‚ˇ title('Input Sequence'); ī‚ˇ grid on; ī‚ˇ magnitude = abs(y); % Find the magnitudes of individual FFT points ī‚ˇ disp('FFT Sequence = '); ī‚ˇ disp(magnitude); ī‚ˇ %code block to plot the FFT sequence ī‚ˇ t = 0:N-1; ī‚ˇ subplot(2,2,2); ī‚ˇ stem(t,magnitude); ī‚ˇ ylabel('Amplitude ---->'); ī‚ˇ xlabel('K ---->'); ī‚ˇ title('FFT Sequence'); ī‚ˇ grid on; ī‚ˇ R = length(y); ī‚ˇ for n = 1:R ī‚ˇ x1(n) = 0; ī‚ˇ for k = 1:R ī‚ˇ x1(n) = x1(n)+(1/R)*y(k)*exp(1i*2*pi*(k-1)*(n-1)/R); ī‚ˇ end ī‚ˇ end ī‚ˇ %code block to plot the IFFT sequence
  • 14. ī‚ˇ t = 0:R-1; ī‚ˇ subplot(2,2,3); ī‚ˇ stem(t,x1); ī‚ˇ disp('IFFT Sequence = '); ī‚ˇ disp(x1); ī‚ˇ ylabel('Amplitude ---->'); ī‚ˇ xlabel('n ---->'); ī‚ˇ title('IFFT sequence'); ī‚ˇ grid on; Enter the input sequence = [1 4 2 5 2] FFT Sequence = 14.0000 2.8124 4.3692 4.3692 2.8124 IFFT Sequence = Columns 1 through 4 1.0000 - 0.0000i 4.0000 - 0.0000i 2.0000 - 0.0000i 5.0000 + 0.0000i Column 5 2.0000 + 0.0000i
  • 15. 7.FIR USING HANNING WINDOW ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ rp = input('Enter the passband ripple = '); ī‚ˇ rs = input('Enter the stopband ripple = '); ī‚ˇ fp = input('Enter the passband frequency = '); ī‚ˇ fs = input('Enter the stopband frequency = '); ī‚ˇ f = input('Enter the sampling frequency = '); ī‚ˇ wp = 2*fp/f; ī‚ˇ ws = 2*fs/f; ī‚ˇ num = -20*log10(sqrt(rp*rs))-13; ī‚ˇ dem = 14.6*(fs-fp)/f; ī‚ˇ n = ceil(num/dem); ī‚ˇ n1 = n+1; ī‚ˇ if (rem(n,2)~=0) ī‚ˇ n1 = n; ī‚ˇ n = n-1; ī‚ˇ end ī‚ˇ y = hanning(n1); ī‚ˇ % low-pass filter ī‚ˇ b = fir1(n,wp,y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,1); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of LPF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ % high-pass filter ī‚ˇ b = fir1(n,wp,'high',y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,2); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of HPF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ % band pass filter ī‚ˇ wn = [wp ws];
  • 16. ī‚ˇ b = fir1(n,wn,y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,3); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of BPF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ % band stop filter ī‚ˇ b = fir1(n,wn,'stop',y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,4); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of BSF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ OUTPUT: ī‚ˇ Enter the passband ripple = 0.03 ī‚ˇ Enter the stopband ripple = 0.01 ī‚ˇ Enter the passband frequency = 1400 ī‚ˇ Enter the stopband frequency = 2000 ī‚ˇ Enter the sampling frequency = 8000
  • 17. 8. FIR FILTER USING CHEBYSHEV WINDOW ī‚ˇ clc; ī‚ˇ clear all; ī‚ˇ rp = input('Enter the passband ripple = '); ī‚ˇ rs = input('Enter the stopband ripple = '); ī‚ˇ fp = input('Enter the passband frequency = '); ī‚ˇ fs = input('Enter the stopband frequency = '); ī‚ˇ f = input('Enter the sampling frequency = '); ī‚ˇ r = input('Enter the ripple value(in dBs) = '); ī‚ˇ wp = 2*fp/f; ī‚ˇ ws = 2*fs/f; ī‚ˇ num = -20*log10(sqrt(rp*rs))-13; ī‚ˇ dem = 14.6*(fs-fp)/f; ī‚ˇ n = ceil(num/dem); ī‚ˇ if(rem(n,2)==0) ī‚ˇ n = n+1; ī‚ˇ end ī‚ˇ y = chebwin(n,r); ī‚ˇ % low-pass filter ī‚ˇ b = fir1(n-1,wp,y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,1); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of LPF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ % high-pass filter ī‚ˇ b = fir1(n-1,wp,'high',y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,2); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of HPF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ % band pass filter ī‚ˇ wn = [wp ws];
  • 18. ī‚ˇ b = fir1(n-1,wn,y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,3); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of BPF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ % band stop filter ī‚ˇ b = fir1(n-1,wn,'stop',y); ī‚ˇ [h,o] = freqz(b,1,256); ī‚ˇ m = 20*log10(abs(h)); ī‚ˇ subplot(2,2,4); ī‚ˇ plot(o/pi,m); ī‚ˇ title('Magnitude Response of BSF'); ī‚ˇ ylabel('Gain in dB ---->'); ī‚ˇ xlabel('Normalised Frequency ---->'); ī‚ˇ grid on; ī‚ˇ OUTPUT: ī‚ˇ Enter the passband ripple = 0.03 ī‚ˇ Enter the stopband ripple = 0.02 ī‚ˇ Enter the passband frequency = 1800 ī‚ˇ Enter the stopband frequency = 2400 ī‚ˇ Enter the sampling frequency = 10000 ī‚ˇ Enter the ripple value(in dBs) = 40