SlideShare a Scribd company logo
ECE324: DIGITAL SIGNAL PROCESSING LABORATORY
Practical No.: 6
Roll No.:B-54 Registration No.: 11205816 Name: Shyamveer Singh
Aim: Design a FIR filter
1. Low pass filter
Mathematical Expressions Required:
Wc = 2π(fc / fs)
Hd(w) =
Inputs :
wc=pi/2
m=7
Program Code:
function[]=lpfshyam(wc,N)
i=(N-1)/2;
wn=wc/pi;
syms w
for n=-i:i
y(n+i+1)=(int(exp(w*n*j),-wc,wc))*1/(2*pi);
end
y=sym2poly(y)
for n=0:N-1
w(n+1)=0.54-0.46*cos(2*pi*n/(N-1));
h(n+1)=y(n+1).*w(n+1);
end
h=sym2poly(h)
fir1(N-1,wn)
end
Aim: Design a FIR filter
1. Low pass filter
Output:
>> lpfshyam((pi/2),7)
y =
-0.1061 0 0.3183 0.5000 0.3183 0 -0.1061
h =
-0.0085 0 0.2451 0.5000 0.2451 0 -0.0085
ans =
-0.0087 0.0000 0.2518 0.5138 0.2518 0.0000 -0.0087
Analysis/ Learning outcomes
This experiment give me a better understanding of low pass filter and
helps me to understand its working graphically.
Aim: Design a FIR filter
2. High pass filter
Mathematical Expressions Required:
Wc = 2π(fc / fs)
Hd(w) =
Inputs:
Wc=pi/2
m=7
Program Codes:
function[]=hpfshyam(wc,N)
i=(N-1)/2;
wn=wc/pi;
syms w
for n=-i:i
y(n+i+1)=(1/2*pi)*(int(exp(j*w*n),-pi,-wc)+int(exp(j*w*n),wc,pi));
end
y=sym2poly(y)
for n=0:N-1
w(n+1)=0.54-0.46*cos(2*pi*n/(N-1));
h(n+1)=y(n+1).*w(n+1);
end
h=sym2poly(h)
fir1(N-1,wn)
end
Output:
>> hpfshyam((pi/2),7)
y =
1.0472 0 -3.1416 4.9348 -3.1416 0 1.0472
h =
0.0838 0 -2.4190 4.9348 -2.4190 0 0.0838
ans =
-0.0087 0.0000 0.2518 0.5138 0.2518 0.0000 -0.0087
Aim: Design a FIR filter
3. Band pass filter
Mathematical Expressions Required:
Wc = 2π(fc / fs)
Hd(w) =
Inputs:
Wc1=pi/4 ,wc2=pi/6
m=7
Program Codes:
function[]=bpfshyam(wc1,wc2,N)
i=(N-1)/2;
wn1=wc1/pi;
wn2=wc2/pi;
syms w
for n=-i:i
y(n+i+1)=(1/2*pi)*(int(exp(j*w*n),-wc2,-wc1)+int(exp(j*w*n),wc1,wc2));
end
y=sym2poly(y)
for n=0:N-1
w(n+1)=0.54-0.46*cos(2*pi*n/(N-1));
h(n+1)=y(n+1).*w(n+1);
end
h=sym2poly(h)
fir1(N-1,wn1)
end
Analysis/ Learning outcomes
This experiment give me a better understanding of High pass filter and
helps me to understand its working graphically
Outputs/ Graphs/ Plots:
>> bpfshyam((pi/4),(pi/6),7)
y =
0.3067 -0.2104 -0.6506 -0.8225 -0.6506 -0.2104 0.3067
h =
0.0245 -0.0652 -0.5010 -0.8225 -0.5010 -0.0652 0.0245
Aim: Design a FIR filter
4. Band stop filter
Mathematical Expressions Required:
Wc = 2π(fc / fs)
Hd(w) =
Inputs:
Wc1=pi/4 , wc2=pi/6
m=7
Analysis/ Learning outcomes
This experiment give me a better understanding of band pass filter and
helps me to understand its working graphically
Program Codes:
function[]=bsfshyam(wc1,wc2,N)
i=(N-1)/2;
wn1=wc1/pi;
wn2=wc2/pi;
syms w
for n=-i:i
y(n+i+1)=(1/2*pi)*(int(exp(j*w*n),-pi,-wc2)+int(exp(j*w*n),-
wc1,wc1)+int(exp(j*w*n),wc2,pi));
end
y=sym2poly(y)
for n=0:N-1
w(n+1)=0.54-0.46*cos(2*pi*n/(N-1));
h(n+1)=y(n+1).*w(n+1);
end
h=sym2poly(h)
fir1(N-1,wn1)
end
Outputs/ Graphs/ Plots:
>> bsfshyam(pi/4,pi/6,7)
y =
-0.3067 0.2104 0.6506 10.6921 0.6506 0.2104 -0.3067
h =
-0.0245 0.0652 0.5010 10.6921 0.5010 0.0652 -0.0245
Analysis/ Learning outcomes
This experiment give me a better understanding of band stop filter and
helps me to understand its working graphically

More Related Content

What's hot

Dsp lab pdf
Dsp lab pdfDsp lab pdf
Dsp lab pdf
shareslidesplease
 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPT
Imtiyaz Rashed
 
Sigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital ConvertersSigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital Converters
Satish Patil
 
Fir filter design using Frequency sampling method
Fir filter design using Frequency sampling methodFir filter design using Frequency sampling method
Fir filter design using Frequency sampling method
Sarang Joshi
 
Frequency Modulation and Demodulation
Frequency  Modulation and DemodulationFrequency  Modulation and Demodulation
Frequency Modulation and Demodulation
j naga sai
 
Fir filter design (windowing technique)
Fir filter design (windowing technique)Fir filter design (windowing technique)
Fir filter design (windowing technique)
Bin Biny Bino
 
Multirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolationMultirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolation
ransherraj
 
Pll in lpc2148
Pll in lpc2148Pll in lpc2148
Pll in lpc2148
Aarav Soni
 
Pulse amplitude modulation & demodulation
Pulse amplitude modulation & demodulationPulse amplitude modulation & demodulation
Pulse amplitude modulation & demodulation
Vishal kakade
 
Advanced communication lab manual
Advanced communication lab manual Advanced communication lab manual
Advanced communication lab manual
AJAL A J
 
Design of FIR Filters
Design of FIR FiltersDesign of FIR Filters
Design of FIR Filters
Aranya Sarkar
 
Receivers
ReceiversReceivers
Receivers
abhishek reddy
 
Satellite link using 16 psk
Satellite link using 16 pskSatellite link using 16 psk
Satellite link using 16 psk
chintanajoshi
 
Digital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manualDigital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manual
Ramesh Sundar
 
Voltage controlled oscillators
Voltage controlled oscillatorsVoltage controlled oscillators
Voltage controlled oscillators
ZunAib Ali
 
Unit- 2 Angle Modulation.ppt
Unit- 2  Angle Modulation.pptUnit- 2  Angle Modulation.ppt
Unit- 2 Angle Modulation.ppt
MATRUSRI ENGINEERING COLLEGE
 
lecture2.ppt
lecture2.pptlecture2.ppt
lecture2.ppt
ssuserb4d806
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter Design
Amr E. Mohamed
 
Boothmultiplication
BoothmultiplicationBoothmultiplication
Boothmultiplication
melisha monteiro
 
Serial Data Communication
Serial Data CommunicationSerial Data Communication
Serial Data Communication
Rizaldi Satria N
 

What's hot (20)

Dsp lab pdf
Dsp lab pdfDsp lab pdf
Dsp lab pdf
 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPT
 
Sigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital ConvertersSigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital Converters
 
Fir filter design using Frequency sampling method
Fir filter design using Frequency sampling methodFir filter design using Frequency sampling method
Fir filter design using Frequency sampling method
 
Frequency Modulation and Demodulation
Frequency  Modulation and DemodulationFrequency  Modulation and Demodulation
Frequency Modulation and Demodulation
 
Fir filter design (windowing technique)
Fir filter design (windowing technique)Fir filter design (windowing technique)
Fir filter design (windowing technique)
 
Multirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolationMultirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolation
 
Pll in lpc2148
Pll in lpc2148Pll in lpc2148
Pll in lpc2148
 
Pulse amplitude modulation & demodulation
Pulse amplitude modulation & demodulationPulse amplitude modulation & demodulation
Pulse amplitude modulation & demodulation
 
Advanced communication lab manual
Advanced communication lab manual Advanced communication lab manual
Advanced communication lab manual
 
Design of FIR Filters
Design of FIR FiltersDesign of FIR Filters
Design of FIR Filters
 
Receivers
ReceiversReceivers
Receivers
 
Satellite link using 16 psk
Satellite link using 16 pskSatellite link using 16 psk
Satellite link using 16 psk
 
Digital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manualDigital signal processing (2nd ed) (mitra) solution manual
Digital signal processing (2nd ed) (mitra) solution manual
 
Voltage controlled oscillators
Voltage controlled oscillatorsVoltage controlled oscillators
Voltage controlled oscillators
 
Unit- 2 Angle Modulation.ppt
Unit- 2  Angle Modulation.pptUnit- 2  Angle Modulation.ppt
Unit- 2 Angle Modulation.ppt
 
lecture2.ppt
lecture2.pptlecture2.ppt
lecture2.ppt
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter Design
 
Boothmultiplication
BoothmultiplicationBoothmultiplication
Boothmultiplication
 
Serial Data Communication
Serial Data CommunicationSerial Data Communication
Serial Data Communication
 

Viewers also liked

Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domain
Zara Tariq
 
Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)
thanh nguyen
 
04 image enhancement edge detection
04 image enhancement edge detection04 image enhancement edge detection
04 image enhancement edge detection
Rumah Belajar
 
Matlab Working With Images
Matlab Working With ImagesMatlab Working With Images
Matlab Working With Images
matlab Content
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
Ashutosh Shahi
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
vkn13
 

Viewers also liked (6)

Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domain
 
Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)
 
04 image enhancement edge detection
04 image enhancement edge detection04 image enhancement edge detection
04 image enhancement edge detection
 
Matlab Working With Images
Matlab Working With ImagesMatlab Working With Images
Matlab Working With Images
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLABBasics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
 

More from Bharti Airtel Ltd.

Resume Shyamveer
Resume ShyamveerResume Shyamveer
Resume Shyamveer
Bharti Airtel Ltd.
 
BHEL Final Report
BHEL Final ReportBHEL Final Report
BHEL Final Report
Bharti Airtel Ltd.
 
BHEL PPT
BHEL PPTBHEL PPT
Amplitude modulated-systmes
Amplitude modulated-systmesAmplitude modulated-systmes
Amplitude modulated-systmes
Bharti Airtel Ltd.
 
Amplitude modulated-systems
Amplitude modulated-systemsAmplitude modulated-systems
Amplitude modulated-systems
Bharti Airtel Ltd.
 
Mcq5 ac-fet-amplifiers
Mcq5 ac-fet-amplifiersMcq5 ac-fet-amplifiers
Mcq5 ac-fet-amplifiers
Bharti Airtel Ltd.
 
Mcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifierMcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifier
Bharti Airtel Ltd.
 
C bjt-biasing-and-stabilization
C bjt-biasing-and-stabilizationC bjt-biasing-and-stabilization
C bjt-biasing-and-stabilization
Bharti Airtel Ltd.
 
Mcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifierMcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifier
Bharti Airtel Ltd.
 
Mcq4 ac-operational-amplifiers
Mcq4 ac-operational-amplifiersMcq4 ac-operational-amplifiers
Mcq4 ac-operational-amplifiers
Bharti Airtel Ltd.
 
Logic gates-notesdc-iii
Logic gates-notesdc-iiiLogic gates-notesdc-iii
Logic gates-notesdc-iii
Bharti Airtel Ltd.
 
C bjt-biasing-and-stabilization
C bjt-biasing-and-stabilizationC bjt-biasing-and-stabilization
C bjt-biasing-and-stabilization
Bharti Airtel Ltd.
 
B bjt-characteristics
B bjt-characteristicsB bjt-characteristics
B bjt-characteristics
Bharti Airtel Ltd.
 
A bjt-operating-modes-configurations
A bjt-operating-modes-configurationsA bjt-operating-modes-configurations
A bjt-operating-modes-configurations
Bharti Airtel Ltd.
 
Resume shyam final
Resume shyam finalResume shyam final
Resume shyam final
Bharti Airtel Ltd.
 
Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis
Bharti Airtel Ltd.
 
Sequence detector Verilog Code
Sequence detector Verilog CodeSequence detector Verilog Code
Sequence detector Verilog Code
Bharti Airtel Ltd.
 
Divine inspiration
Divine inspirationDivine inspiration
Divine inspiration
Bharti Airtel Ltd.
 
To designing counters using verilog code
To designing counters using verilog codeTo designing counters using verilog code
To designing counters using verilog code
Bharti Airtel Ltd.
 
Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer
Bharti Airtel Ltd.
 

More from Bharti Airtel Ltd. (20)

Resume Shyamveer
Resume ShyamveerResume Shyamveer
Resume Shyamveer
 
BHEL Final Report
BHEL Final ReportBHEL Final Report
BHEL Final Report
 
BHEL PPT
BHEL PPTBHEL PPT
BHEL PPT
 
Amplitude modulated-systmes
Amplitude modulated-systmesAmplitude modulated-systmes
Amplitude modulated-systmes
 
Amplitude modulated-systems
Amplitude modulated-systemsAmplitude modulated-systems
Amplitude modulated-systems
 
Mcq5 ac-fet-amplifiers
Mcq5 ac-fet-amplifiersMcq5 ac-fet-amplifiers
Mcq5 ac-fet-amplifiers
 
Mcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifierMcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifier
 
C bjt-biasing-and-stabilization
C bjt-biasing-and-stabilizationC bjt-biasing-and-stabilization
C bjt-biasing-and-stabilization
 
Mcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifierMcq6 ac-mosfet-amplifier
Mcq6 ac-mosfet-amplifier
 
Mcq4 ac-operational-amplifiers
Mcq4 ac-operational-amplifiersMcq4 ac-operational-amplifiers
Mcq4 ac-operational-amplifiers
 
Logic gates-notesdc-iii
Logic gates-notesdc-iiiLogic gates-notesdc-iii
Logic gates-notesdc-iii
 
C bjt-biasing-and-stabilization
C bjt-biasing-and-stabilizationC bjt-biasing-and-stabilization
C bjt-biasing-and-stabilization
 
B bjt-characteristics
B bjt-characteristicsB bjt-characteristics
B bjt-characteristics
 
A bjt-operating-modes-configurations
A bjt-operating-modes-configurationsA bjt-operating-modes-configurations
A bjt-operating-modes-configurations
 
Resume shyam final
Resume shyam finalResume shyam final
Resume shyam final
 
Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis Noise detection from the signal matlab code, Signal Diagnosis
Noise detection from the signal matlab code, Signal Diagnosis
 
Sequence detector Verilog Code
Sequence detector Verilog CodeSequence detector Verilog Code
Sequence detector Verilog Code
 
Divine inspiration
Divine inspirationDivine inspiration
Divine inspiration
 
To designing counters using verilog code
To designing counters using verilog codeTo designing counters using verilog code
To designing counters using verilog code
 
Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer
 

Recently uploaded

Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
GauravCar
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
PKavitha10
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
Madan Karki
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
shahdabdulbaset
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
Roger Rozario
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 

Recently uploaded (20)

Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 

FIR filter designing using Matlab

  • 1. ECE324: DIGITAL SIGNAL PROCESSING LABORATORY Practical No.: 6 Roll No.:B-54 Registration No.: 11205816 Name: Shyamveer Singh Aim: Design a FIR filter 1. Low pass filter Mathematical Expressions Required: Wc = 2π(fc / fs) Hd(w) = Inputs : wc=pi/2 m=7 Program Code: function[]=lpfshyam(wc,N) i=(N-1)/2; wn=wc/pi; syms w for n=-i:i y(n+i+1)=(int(exp(w*n*j),-wc,wc))*1/(2*pi); end y=sym2poly(y) for n=0:N-1 w(n+1)=0.54-0.46*cos(2*pi*n/(N-1)); h(n+1)=y(n+1).*w(n+1); end h=sym2poly(h) fir1(N-1,wn) end
  • 2. Aim: Design a FIR filter 1. Low pass filter Output: >> lpfshyam((pi/2),7) y = -0.1061 0 0.3183 0.5000 0.3183 0 -0.1061 h = -0.0085 0 0.2451 0.5000 0.2451 0 -0.0085 ans = -0.0087 0.0000 0.2518 0.5138 0.2518 0.0000 -0.0087 Analysis/ Learning outcomes This experiment give me a better understanding of low pass filter and helps me to understand its working graphically. Aim: Design a FIR filter 2. High pass filter Mathematical Expressions Required: Wc = 2π(fc / fs) Hd(w) =
  • 3. Inputs: Wc=pi/2 m=7 Program Codes: function[]=hpfshyam(wc,N) i=(N-1)/2; wn=wc/pi; syms w for n=-i:i y(n+i+1)=(1/2*pi)*(int(exp(j*w*n),-pi,-wc)+int(exp(j*w*n),wc,pi)); end y=sym2poly(y) for n=0:N-1 w(n+1)=0.54-0.46*cos(2*pi*n/(N-1)); h(n+1)=y(n+1).*w(n+1); end h=sym2poly(h) fir1(N-1,wn) end Output: >> hpfshyam((pi/2),7) y = 1.0472 0 -3.1416 4.9348 -3.1416 0 1.0472 h = 0.0838 0 -2.4190 4.9348 -2.4190 0 0.0838 ans = -0.0087 0.0000 0.2518 0.5138 0.2518 0.0000 -0.0087
  • 4. Aim: Design a FIR filter 3. Band pass filter Mathematical Expressions Required: Wc = 2π(fc / fs) Hd(w) = Inputs: Wc1=pi/4 ,wc2=pi/6 m=7 Program Codes: function[]=bpfshyam(wc1,wc2,N) i=(N-1)/2; wn1=wc1/pi; wn2=wc2/pi; syms w for n=-i:i y(n+i+1)=(1/2*pi)*(int(exp(j*w*n),-wc2,-wc1)+int(exp(j*w*n),wc1,wc2)); end y=sym2poly(y) for n=0:N-1 w(n+1)=0.54-0.46*cos(2*pi*n/(N-1)); h(n+1)=y(n+1).*w(n+1); end h=sym2poly(h) fir1(N-1,wn1) end Analysis/ Learning outcomes This experiment give me a better understanding of High pass filter and helps me to understand its working graphically
  • 5. Outputs/ Graphs/ Plots: >> bpfshyam((pi/4),(pi/6),7) y = 0.3067 -0.2104 -0.6506 -0.8225 -0.6506 -0.2104 0.3067 h = 0.0245 -0.0652 -0.5010 -0.8225 -0.5010 -0.0652 0.0245 Aim: Design a FIR filter 4. Band stop filter Mathematical Expressions Required: Wc = 2π(fc / fs) Hd(w) = Inputs: Wc1=pi/4 , wc2=pi/6 m=7 Analysis/ Learning outcomes This experiment give me a better understanding of band pass filter and helps me to understand its working graphically
  • 6. Program Codes: function[]=bsfshyam(wc1,wc2,N) i=(N-1)/2; wn1=wc1/pi; wn2=wc2/pi; syms w for n=-i:i y(n+i+1)=(1/2*pi)*(int(exp(j*w*n),-pi,-wc2)+int(exp(j*w*n),- wc1,wc1)+int(exp(j*w*n),wc2,pi)); end y=sym2poly(y) for n=0:N-1 w(n+1)=0.54-0.46*cos(2*pi*n/(N-1)); h(n+1)=y(n+1).*w(n+1); end h=sym2poly(h) fir1(N-1,wn1) end Outputs/ Graphs/ Plots: >> bsfshyam(pi/4,pi/6,7) y = -0.3067 0.2104 0.6506 10.6921 0.6506 0.2104 -0.3067 h = -0.0245 0.0652 0.5010 10.6921 0.5010 0.0652 -0.0245 Analysis/ Learning outcomes This experiment give me a better understanding of band stop filter and helps me to understand its working graphically