Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
17 views
DSP Codes
Uploaded by
Abhinay Challa
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save DSP codes For Later
Download
Save
Save DSP codes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
17 views
DSP Codes
Uploaded by
Abhinay Challa
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save DSP codes For Later
Carousel Previous
Carousel Next
Save
Save DSP codes For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 7
Search
Fullscreen
Ce o~ 10 a 12 13 a4 15 16 17 18 19 20 21 22 23 24 25 26 m7 28 29 30 32 33 34 3A Low Pass filter FIR filter type %X%X% clear all cle b-([21]; a= 2; [h, w] = freqz(b,a); figure(1) subplot (2,1,1); plot(w/pi, abs(h),'b’, LineWidth',2); grid on title(' Frequency + of Elementary Low pass filter’); axis([@ 1 @ 1]) xdabel(‘Normalized frequency’); ylabel (‘Magnitude in ab te value!); subplot(2,1,2) plot(w/pi,rad2deg(angle(h)), ‘b’, ‘Linewidth » 2)3 grid on xlabel(*Normalized frequency’); ylabel('Phase angle (deg)'); BERK Discrete time sequence Ts 21 n = @:1:100; x = sin(0.1*pitn*Ts) + sin(@.9*pi=n*Ts); x1 = Sin(@.1*pitn*Ts); x2 = sin(@.9*pi*n*Ts); zi = 0; y = filter(b,a,x,2i); Figure(2) stem(n,x,'b', “filled BBO ONG Cf eameies 135) lyiabel( ‘amplitude dy titlec t 0 ence’); Pegend(*Tnput OF sequence’) figure(3) stem(n,x,'b', ys hold Stem(nyy "m1 Hed!); hold xlabel( ‘No of samplen). Ylabel(' input dnd’ iit ey are title(! Input dae Gnd eae ieWKXK High Pass filter FIR filter type XXXK% clear all ele b= [2-1]; (als 2; (h, w] = freqz(b,a); figure(1) subplot (2,1,1); plot(w/pi, abs(h),"b',‘Linewidth',2); grid on title(| Frequency response of Elementary High pass filter’); axis([@ 1 @ 1) xlabel('Normalized frequency’); ylabel( ‘Magnitude in absolute value’); subplot (2,1, 2) plot(w/pi,radzdeg(angle(h)), ‘b’, ‘Linewidth', 2); grid on xlabel(‘Normalized frequency’); ylabel(‘Phase angle (deg)"); BKK Discrete time sequence ts |= 25 100; sin(@.1*pitn*Ts) + sin(@.9*pitn*Ts); x1 = sin(@.1*pi*n*Ts); x2 = sin(@.9*pitn*Ts); zi = a; y = filter(b,a,x,zi); figure(2) stem(n,x,'b',"filled’); xlabel('No of samples‘); ylabel(‘Amplitude’); title('Input DT sequence’); legend(*Input DT sequence’) figure(3) stem(n,x,'b','filled’); hold on stem(n,y,'m-",'filled’); hold on xlabel('No of samples’); ylabel(’Input and filtered DT title(‘Input (blue color) and Filtered DT sequARK Band pass filter FIR filter type X¥XXX clear all. cle b = [eonv([1 1],[2 -1])]; a = 25 [h, w] = freqz(b,a); figure(1) subplot(2,1,1); plot(w/pi, abs(h),"b","Linewidth’,2); grid on title(*Frequency response of Elementary band pass filter’); axis([@ 1 @ 1]) xlabel( ‘Normalized frequency"); ylabel( ‘Magnitude in absolute value’)} subplot(2,1,2) plot(w/pi,rad2deg(angle(h)), "b*, ‘Linewidth’, 2)$ grid on xlabel(‘Normalized frequency’); ylabel('Phase angle (deg)'); XKXX Discrete time sequence 1 @:1:100; cos(0.01*pitn*Ts) + cos(0.4*pitn*Ts) + cos(0.5*pitn*Ts) + cos(@.95*pitntTs); zeros(1 , max(length(a),length(b))-1) y = filter(b,a,x,zi); Figure(2) stem(n,x, "b’," filled") xlabel(‘No of samples’); ylabel("Amplitude'); title(/tnput oT) sequen legend(‘Input OT sequence") figure(3) stem(n,x,'b','filled"); hold stem(n,y,'m-',‘filled'); hold xlabel(‘No amples"); ylabel(‘Input and filtered title(‘Input (blue color) and Filtere deneetRLael le31 32 XEKK Band stop filter FIR filter type %XXRX clear all cle b=[1@4]; a= 2; [h, w] = freqz(b,a); figure(1) subplot (2,1,1); plot(w/pi, abs(h),'b*,’LineWidth",2); grid on title(‘Frequency response of Elementary band stop filter’); axis([@ 1 @ 1]) xlabel(‘Normalized frequency’); subplot (2,1,2) plot(w/pi,rad2deg(angle(h)), “b’, ‘Linewidth’, 2)} grid on xlabel( ‘Normalized frequency"); ylabel('Phase angle (deg)'); %EK% Discrete time sequence Ts = 15 00; zi = zeros(1 , max(length(a),length(b))-1); = filter(b,a,x,zi); figure(2) ylabel( ‘Magnitude in absolute value’) cos(@.01*pi*n*Ts) + cos(@.4*pitn*Ts) + cos(0.5*pi* ee co2(0. 95¢pi stem(n,x,°b *filled'); xlabel(‘No of samples’); ylabel( Amplitude’); legend( ‘Input oT equence') figure(3) stem(n,x,'b stem(n,y,'m-", . filled’); *filled’); hold on) hold on xlabel(‘No of samples’); ylabel(‘Input and fil title(’Input oy sequence’ )3) ed DT sequence’); | ||| title('Input (blue color) and Filtered DT sequence(Pink cole yy ifreqz(bl,al); freqz(b2,a2 freqz(b3,a3); freqz(b4,a4) 5 subplot (4,2, 1); Plot(wi/pi, abs(h1),"b', "Li: (914 1]) xlabel(‘Hormelized freaiiency'), ‘subplot (4,2,2) i | Plat (wi/pi, radzdeg(angle(n)) | Mabel (/ Normalized) frequel subplot(4,2, 3) i ate an |absctutel value"); 4, 2)5 @rid on ip fapgte| Klee) 1)3KKK Discrete time sequence 1 | fis i= dy i n= @:1:100; i X1 = cos(@.1*pitn*Ts) + cos(@.45*pitn*Ts) + cos(@.8*pitn*Ts) ; ) : zil = zeros(1 , max(length(al),length(b1))-1); | yi = filter(b1,al,x1,zi1); figure(2) stem(n,x1,'b',"filled'); : | xlabel('No of samples’); ylabel(*Amplitude'); title(*Input OT sequence 4") legend('Input DT sequence 1°) | figure(3) | stem(n,x1,'b','Filled’); hold on ; stem(n,y1,'m-','filled'); hold on i xlabel(‘No of samples’); ylabel('Input and filtered DT’ sequence 1"); title(' Input (blue color) and Filtered OT! sequence 1¢Pink color) *)+ %HRG Discrete time sequence 2 Tei n= @:1:100; x2 = Cos(@.1*pi*n#Ts) + cos(@.35*pitn*Ts) + cos(@.45*pi*n*Ts); zi2 = zeros(1 , max(length(a2) ,length(b2))-1); y2 = filter(b2,a2,x2,212); figure(4) stem(n,x2,'b','filled'); mlabel( Hoof samples’); | ylabeh( Amplitude’); title( Inout, DT sequence 2"); Jegend(' Inout: OT) sequence!) Figure(5) | im stem(n,x2,°b''Filled")}\ hold dq stem(n,y2,'m-", 'fillea’ hold) en, Mabel (‘No gf samples"), ylabel(’ tnaut and filtered DY sequence 2°), title(* input (blue 'olgin)) and Faitedred, Dp pequence 2(Pink colon) ") 5
You might also like
EENG 479: Digital Signal Processing: Student Name: ID
PDF
No ratings yet
EENG 479: Digital Signal Processing: Student Name: ID
12 pages
Generation of Elementary Discrete Time Sequence With Formula Generation of Elementary Discrete Time Sequence Without Formula
PDF
No ratings yet
Generation of Elementary Discrete Time Sequence With Formula Generation of Elementary Discrete Time Sequence Without Formula
11 pages
Fir Low Pass Filter
PDF
No ratings yet
Fir Low Pass Filter
2 pages
Digital Signal Processing Matlab Programs
PDF
No ratings yet
Digital Signal Processing Matlab Programs
34 pages
DSP Lab Programs 2013
PDF
No ratings yet
DSP Lab Programs 2013
38 pages
EXp2 (1)
PDF
No ratings yet
EXp2 (1)
3 pages
Matlab Programs Re
PDF
No ratings yet
Matlab Programs Re
13 pages
DSP - Anna University
PDF
No ratings yet
DSP - Anna University
44 pages
Matlab Programs Manual
PDF
100% (1)
Matlab Programs Manual
18 pages
DSP Lab
PDF
No ratings yet
DSP Lab
6 pages
Angel Record
PDF
No ratings yet
Angel Record
54 pages
dsp
PDF
No ratings yet
dsp
7 pages
DSP Lab Report
PDF
No ratings yet
DSP Lab Report
23 pages
DSP Lab Manual Align
PDF
No ratings yet
DSP Lab Manual Align
134 pages
DSP Basicprograms
PDF
No ratings yet
DSP Basicprograms
22 pages
dsp singam
PDF
No ratings yet
dsp singam
9 pages
All All
PDF
No ratings yet
All All
1 page
All All: For End If Else End
PDF
No ratings yet
All All: For End If Else End
6 pages
Emaan Ishtiaq DSP Lab 6
PDF
No ratings yet
Emaan Ishtiaq DSP Lab 6
11 pages
Signals and System
PDF
No ratings yet
Signals and System
26 pages
Periodic Signals:: All All
PDF
No ratings yet
Periodic Signals:: All All
22 pages
DSP Lab Programs
PDF
No ratings yet
DSP Lab Programs
15 pages
FIR Filter Design Matlab
PDF
No ratings yet
FIR Filter Design Matlab
9 pages
Digital Signal Processing Lab: Dr. Nanda Kumar M
PDF
No ratings yet
Digital Signal Processing Lab: Dr. Nanda Kumar M
38 pages
MATLAB Lab Project - Mtech IIsem
PDF
No ratings yet
MATLAB Lab Project - Mtech IIsem
61 pages
Mat Lab Program
PDF
No ratings yet
Mat Lab Program
4 pages
Matlab Assignment 22bec038
PDF
No ratings yet
Matlab Assignment 22bec038
20 pages
Labmanual Signal
PDF
No ratings yet
Labmanual Signal
51 pages
Lab Manual PG DEC 2sem
PDF
No ratings yet
Lab Manual PG DEC 2sem
41 pages
M.tecl Lab
PDF
No ratings yet
M.tecl Lab
37 pages
Lab Work 6 - Frequency Response of Basic Filter Circuit
PDF
No ratings yet
Lab Work 6 - Frequency Response of Basic Filter Circuit
10 pages
Program: %generation of Basic Signals
PDF
No ratings yet
Program: %generation of Basic Signals
30 pages
DTSP Lab Manual 5
PDF
No ratings yet
DTSP Lab Manual 5
260 pages
Digital Signal Processing Lab - DR - R Kumaraswamy
PDF
No ratings yet
Digital Signal Processing Lab - DR - R Kumaraswamy
56 pages
Programs For Matlab1
PDF
No ratings yet
Programs For Matlab1
7 pages
Digital Signal Processing: Practical File
PDF
No ratings yet
Digital Signal Processing: Practical File
13 pages
Exp 7
PDF
No ratings yet
Exp 7
7 pages
FIR Filter Design MATLAB Code
PDF
100% (1)
FIR Filter Design MATLAB Code
2 pages
DSP Practical File
PDF
No ratings yet
DSP Practical File
18 pages
DC Program Demo
PDF
No ratings yet
DC Program Demo
6 pages
Lab DSP
PDF
No ratings yet
Lab DSP
29 pages
(EE3101) Laboratory 2 Report
PDF
No ratings yet
(EE3101) Laboratory 2 Report
14 pages
Down Sampling: All All
PDF
No ratings yet
Down Sampling: All All
18 pages
MATLAB DSP Programs: Raja Rajasakeran Venkat Peddigari Pete Bernardin
PDF
No ratings yet
MATLAB DSP Programs: Raja Rajasakeran Venkat Peddigari Pete Bernardin
11 pages
15LEB369
PDF
No ratings yet
15LEB369
7 pages
Linear and Circular Convolution: All All
PDF
No ratings yet
Linear and Circular Convolution: All All
3 pages
DSP_Lab Manual 22 Batch V Sem SPC 511 EC 2024-2025
PDF
No ratings yet
DSP_Lab Manual 22 Batch V Sem SPC 511 EC 2024-2025
48 pages
Matlab Task: All All
PDF
No ratings yet
Matlab Task: All All
16 pages
Generation of Sinusoidal Waveform: Aim:-To Generate The Following Signals Using MATLAB
PDF
No ratings yet
Generation of Sinusoidal Waveform: Aim:-To Generate The Following Signals Using MATLAB
29 pages
DSP Lab File Report
PDF
No ratings yet
DSP Lab File Report
44 pages
DSP Lab
PDF
No ratings yet
DSP Lab
126 pages
Name:K.Shanmukha Priya Id - No:180040542 Section:S3
PDF
No ratings yet
Name:K.Shanmukha Priya Id - No:180040542 Section:S3
6 pages
%covolution of Two Sequences & %comparison With Conv Command
PDF
No ratings yet
%covolution of Two Sequences & %comparison With Conv Command
21 pages
Important
PDF
No ratings yet
Important
9 pages
Assignment 1
PDF
No ratings yet
Assignment 1
15 pages
dsp lab programs (1)
PDF
No ratings yet
dsp lab programs (1)
38 pages
Questions Towards RECAP of Prerequisites To Power System Protection
PDF
No ratings yet
Questions Towards RECAP of Prerequisites To Power System Protection
1 page
HR Questions
PDF
No ratings yet
HR Questions
1 page
Wa0033.
PDF
No ratings yet
Wa0033.
1 page
EX4 Windowing Tech FIR
PDF
No ratings yet
EX4 Windowing Tech FIR
5 pages
Course Plan ADCS
PDF
No ratings yet
Course Plan ADCS
1 page
Open Elective and Mandatory Non-Credit Course 2023-12-21-17-56-0
PDF
No ratings yet
Open Elective and Mandatory Non-Credit Course 2023-12-21-17-56-0
4 pages