SlideShare a Scribd company logo
MATLAB IMPLEMENTATION OF FFT
PROF. RAKESH K. JHA
CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA)
DEPARTMENT OF ELECTRONICS & COMMUNICATION
MATLAB IMPLEMENTATION OF FAST FOURIER TRANSFORM
% fft of 10 hz and 20 hz signal
clear all;
clc;
close all;
fs= 100;
f1=10 ;
f2= 20 ;
nfft=1024;
%plot 10 hz signal
t=-1:1/fs:1;
y1= sin(2*pi*f1*t);
figure;
plot(t,y1)
xlabel('----->t');
ylabel('sin(2*pi*f1*t)');
title('10 hz ferquency signal');
%plot 20 hz signal
t=-1:1/fs:1;
y2= sin(2*pi*f2*t);
figure;
plot(t,y2)
xlabel('----->t');
ylabel('sin(2*pi*f2*t)');
title('20 hz ferquency signal');
%addition of two signals
y3= y1+y2;
figure;
plot(t,y3)
xlabel('----->t');
ylabel('sin(2*pi*f1*t)+sin(2*pi*f2*t)');
title(' addition of two signal');
% appended signal
y4=[y1,y2];
figure
plot(y4);
xlabel('---->t');
ylabel('appended signal');
title(' plot appending of two signals');
%fft of y1
x1= fft(y1,nfft)
x1= x1(1:nfft/2)
mx1= abs(x1);
f=(1:nfft/2)*fs/nfft;
figure
plot(f,mx1);
xlabel(' frequency in hz');
ylabel('power');
title('fft of 10 hz signal');
%fft of y2
x2= fft(y2,nfft);
x2=x2(1:nfft/2);
mx2= abs(x2);
f=(0:nfft/2-1)*fs/nfft;
figure
plot(f,mx2);
MATLAB IMPLEMENTATION OF FFT
PROF. RAKESH K. JHA
CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA)
DEPARTMENT OF ELECTRONICS & COMMUNICATION
xlabel(' frequency in hz');
ylabel('power');
title('fft of 20 hz signal');
% fft of added signal y3
x3= fft(y3,nfft);
x3=x3(1:nfft/2);
mx3= abs(x3);
f=(0:nfft/2-1)*fs/nfft;
figure
plot(f,mx3);
xlabel(' frequency in hz');
ylabel('power');
title('fft of added signal');
%fft of appended signal
x4= fft(y4,nfft);
x4=x4(1:nfft/2);
mx4=abs(x4);
f=(0:nfft/2-1)*fs/nfft;
figure
plot(f,mx4);
xlabel(' frequency in hz');
ylabel('power');
title('fft of appended signal');
RESULTS:
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
----->t
sin(2*pi*f1*t)
10 hz ferquency signal
MATLAB IMPLEMENTATION OF FFT
PROF. RAKESH K. JHA
CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA)
DEPARTMENT OF ELECTRONICS & COMMUNICATION
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
----->t
sin(2*pi*f2*t)
20 hz ferquency signal
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
----->t
sin(2*pi*f1*t)+sin(2*pi*f2*t)
addition of two signal
MATLAB IMPLEMENTATION OF FFT
PROF. RAKESH K. JHA
CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA)
DEPARTMENT OF ELECTRONICS & COMMUNICATION
0 50 100 150 200 250 300 350 400 450
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
---->t
appendedsignal plot appending of two signals
0 5 10 15 20 25 30 35 40 45 50
0
10
20
30
40
50
60
70
80
90
100
frequency in hz
power
fft of 10 hz signal
MATLAB IMPLEMENTATION OF FFT
PROF. RAKESH K. JHA
CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA)
DEPARTMENT OF ELECTRONICS & COMMUNICATION
0 5 10 15 20 25 30 35 40 45 50
0
10
20
30
40
50
60
70
80
90
100
frequency in hz
power fft of 20 hz signal
0 5 10 15 20 25 30 35 40 45 50
0
10
20
30
40
50
60
70
80
90
100
frequency in hz
power
fft of added signal
MATLAB IMPLEMENTATION OF FFT
PROF. RAKESH K. JHA
CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA)
DEPARTMENT OF ELECTRONICS & COMMUNICATION
0 5 10 15 20 25 30 35 40 45 50
0
10
20
30
40
50
60
70
80
90
100
frequency in hz
power fft of appended signal

More Related Content

What's hot

Signals & Systems PPT
Signals & Systems PPTSignals & Systems PPT
Signals & Systems PPTJay Baria
 
EC8352-Signals and Systems - Laplace transform
EC8352-Signals and Systems - Laplace transformEC8352-Signals and Systems - Laplace transform
EC8352-Signals and Systems - Laplace transformNimithaSoman
 
3_Antenna Array [Modlue 4] (1).pdf
3_Antenna Array [Modlue 4] (1).pdf3_Antenna Array [Modlue 4] (1).pdf
3_Antenna Array [Modlue 4] (1).pdfsumanthsai22
 
Z Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsZ Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsMr. RahüL YøGi
 
Region of Convergence (ROC) in the z-plane
Region of Convergence (ROC) in the z-planeRegion of Convergence (ROC) in the z-plane
Region of Convergence (ROC) in the z-planevenkatasuman1983
 
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 DesignAmr E. Mohamed
 
Antenna & wave lab manual
Antenna & wave lab manualAntenna & wave lab manual
Antenna & wave lab manualamanabr
 
Discreate time system and z transform
Discreate time system and z transformDiscreate time system and z transform
Discreate time system and z transformVIKAS KUMAR MANJHI
 
Properties of fourier transform
Properties of fourier transformProperties of fourier transform
Properties of fourier transformNisarg Amin
 
DAC-digital to analog converter
DAC-digital to analog converterDAC-digital to analog converter
DAC-digital to analog converterShazid Reaj
 
NAS-Ch4-Application of Laplace Transform
NAS-Ch4-Application of Laplace TransformNAS-Ch4-Application of Laplace Transform
NAS-Ch4-Application of Laplace TransformHussain K
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsAmr E. Mohamed
 
opamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timeropamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timerAsif Iqbal
 

What's hot (20)

Signals & Systems PPT
Signals & Systems PPTSignals & Systems PPT
Signals & Systems PPT
 
EC8352-Signals and Systems - Laplace transform
EC8352-Signals and Systems - Laplace transformEC8352-Signals and Systems - Laplace transform
EC8352-Signals and Systems - Laplace transform
 
Chebyshev filter
Chebyshev filterChebyshev filter
Chebyshev filter
 
Loop Antennas
Loop AntennasLoop Antennas
Loop Antennas
 
3_Antenna Array [Modlue 4] (1).pdf
3_Antenna Array [Modlue 4] (1).pdf3_Antenna Array [Modlue 4] (1).pdf
3_Antenna Array [Modlue 4] (1).pdf
 
Z Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And SystemsZ Transform And Inverse Z Transform - Signal And Systems
Z Transform And Inverse Z Transform - Signal And Systems
 
Region of Convergence (ROC) in the z-plane
Region of Convergence (ROC) in the z-planeRegion of Convergence (ROC) in the z-plane
Region of Convergence (ROC) in the z-plane
 
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
 
Antenna & wave lab manual
Antenna & wave lab manualAntenna & wave lab manual
Antenna & wave lab manual
 
Discreate time system and z transform
Discreate time system and z transformDiscreate time system and z transform
Discreate time system and z transform
 
Sampling theorem
Sampling theoremSampling theorem
Sampling theorem
 
Properties of fourier transform
Properties of fourier transformProperties of fourier transform
Properties of fourier transform
 
DAC-digital to analog converter
DAC-digital to analog converterDAC-digital to analog converter
DAC-digital to analog converter
 
Fourier transform
Fourier transformFourier transform
Fourier transform
 
NAS-Ch4-Application of Laplace Transform
NAS-Ch4-Application of Laplace TransformNAS-Ch4-Application of Laplace Transform
NAS-Ch4-Application of Laplace Transform
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
 
Convolution
ConvolutionConvolution
Convolution
 
opamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timeropamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timer
 
Magic tee
Magic tee  Magic tee
Magic tee
 
Impulse Response ppt
Impulse Response pptImpulse Response ppt
Impulse Response ppt
 

Viewers also liked

Matlab code for comparing two microphone files
Matlab code for comparing two microphone filesMatlab code for comparing two microphone files
Matlab code for comparing two microphone filesMinh Anh Nguyen
 
Review of fourier series
Review of fourier seriesReview of fourier series
Review of fourier seriesMax Powers
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLABZunAib Ali
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1Faiza Saher
 
Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Rimple Mahey
 
Manifold learning
Manifold learningManifold learning
Manifold learningWei Yang
 
numerical differentiation&integration
numerical differentiation&integrationnumerical differentiation&integration
numerical differentiation&integration8laddu8
 
How to work on Matlab.......
How to work on Matlab.......How to work on Matlab.......
How to work on Matlab.......biinoida
 
Fourier series example
Fourier series exampleFourier series example
Fourier series exampleAbi finni
 
Manifold Learning
Manifold LearningManifold Learning
Manifold LearningPhong Vo
 
fourier series
fourier seriesfourier series
fourier series8laddu8
 
Manifold learning with application to object recognition
Manifold learning with application to object recognitionManifold learning with application to object recognition
Manifold learning with application to object recognitionzukun
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersMurshida ck
 
Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...
Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...
Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...wl820609
 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsRay Phan
 

Viewers also liked (20)

Matlab code for comparing two microphone files
Matlab code for comparing two microphone filesMatlab code for comparing two microphone files
Matlab code for comparing two microphone files
 
Review of fourier series
Review of fourier seriesReview of fourier series
Review of fourier series
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLAB
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1
 
Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01
 
Kernel Methods on Manifolds
Kernel Methods on ManifoldsKernel Methods on Manifolds
Kernel Methods on Manifolds
 
Matlab programs
Matlab programsMatlab programs
Matlab programs
 
DSP 05 _ Sheet Five
DSP 05 _ Sheet FiveDSP 05 _ Sheet Five
DSP 05 _ Sheet Five
 
SE2_Lec 18_ Coding
SE2_Lec 18_ CodingSE2_Lec 18_ Coding
SE2_Lec 18_ Coding
 
Manifold learning
Manifold learningManifold learning
Manifold learning
 
numerical differentiation&integration
numerical differentiation&integrationnumerical differentiation&integration
numerical differentiation&integration
 
How to work on Matlab.......
How to work on Matlab.......How to work on Matlab.......
How to work on Matlab.......
 
AEM Fourier series
 AEM Fourier series AEM Fourier series
AEM Fourier series
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
Manifold Learning
Manifold LearningManifold Learning
Manifold Learning
 
fourier series
fourier seriesfourier series
fourier series
 
Manifold learning with application to object recognition
Manifold learning with application to object recognitionManifold learning with application to object recognition
Manifold learning with application to object recognition
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginners
 
Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...
Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...
Dimension Reduction And Visualization Of Large High Dimensional Data Via Inte...
 
Advanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & ScientistsAdvanced MATLAB Tutorial for Engineers & Scientists
Advanced MATLAB Tutorial for Engineers & Scientists
 

Similar to Matlab implementation of fast fourier transform

A Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkA Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkJaewook. Kang
 
1_4_propertiesOfDFT.pptx
1_4_propertiesOfDFT.pptx1_4_propertiesOfDFT.pptx
1_4_propertiesOfDFT.pptxAkasGkamal2
 
Frequency Modulation.ppt
Frequency Modulation.pptFrequency Modulation.ppt
Frequency Modulation.pptStefan Oprea
 
Digital Signal Processing Tutorial:Chapt 3 frequency analysis
Digital Signal Processing Tutorial:Chapt 3 frequency analysisDigital Signal Processing Tutorial:Chapt 3 frequency analysis
Digital Signal Processing Tutorial:Chapt 3 frequency analysisChandrashekhar Padole
 
20120214 optical pulse_measurement_wei-yi
20120214 optical pulse_measurement_wei-yi20120214 optical pulse_measurement_wei-yi
20120214 optical pulse_measurement_wei-yi奕勳 陳
 
eecs242_lect3_rxarch.pdf
eecs242_lect3_rxarch.pdfeecs242_lect3_rxarch.pdf
eecs242_lect3_rxarch.pdfNahshonMObiri
 
Digitla Communication pulse shaping filter
Digitla Communication pulse shaping filterDigitla Communication pulse shaping filter
Digitla Communication pulse shaping filtermirfanjum
 
Matlab fair-record-model
Matlab fair-record-modelMatlab fair-record-model
Matlab fair-record-modelajaydev1111
 
射頻電子 - [第一章] 知識回顧與通訊系統簡介
射頻電子 - [第一章] 知識回顧與通訊系統簡介射頻電子 - [第一章] 知識回顧與通訊系統簡介
射頻電子 - [第一章] 知識回顧與通訊系統簡介Simen Li
 
Eece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transformEece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transformSandilya Sridhara
 
RF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF TransceiversRF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF TransceiversSimen Li
 
Mathematical support for preventive maintenance periodicity optimization of r...
Mathematical support for preventive maintenance periodicity optimization of r...Mathematical support for preventive maintenance periodicity optimization of r...
Mathematical support for preventive maintenance periodicity optimization of r...Alexander Lyubchenko
 
7076 chapter5 slides
7076 chapter5 slides7076 chapter5 slides
7076 chapter5 slidesNguyen Mina
 

Similar to Matlab implementation of fast fourier transform (20)

A Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkA Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB Simulink
 
1_4_propertiesOfDFT.pptx
1_4_propertiesOfDFT.pptx1_4_propertiesOfDFT.pptx
1_4_propertiesOfDFT.pptx
 
Fhss project
Fhss projectFhss project
Fhss project
 
Frequency Modulation.ppt
Frequency Modulation.pptFrequency Modulation.ppt
Frequency Modulation.ppt
 
Digital Signal Processing Tutorial:Chapt 3 frequency analysis
Digital Signal Processing Tutorial:Chapt 3 frequency analysisDigital Signal Processing Tutorial:Chapt 3 frequency analysis
Digital Signal Processing Tutorial:Chapt 3 frequency analysis
 
20120214 optical pulse_measurement_wei-yi
20120214 optical pulse_measurement_wei-yi20120214 optical pulse_measurement_wei-yi
20120214 optical pulse_measurement_wei-yi
 
eecs242_lect3_rxarch.pdf
eecs242_lect3_rxarch.pdfeecs242_lect3_rxarch.pdf
eecs242_lect3_rxarch.pdf
 
13486500-FFT.ppt
13486500-FFT.ppt13486500-FFT.ppt
13486500-FFT.ppt
 
Digitla Communication pulse shaping filter
Digitla Communication pulse shaping filterDigitla Communication pulse shaping filter
Digitla Communication pulse shaping filter
 
HNT_spec_4x4
HNT_spec_4x4HNT_spec_4x4
HNT_spec_4x4
 
Matlab fair-record-model
Matlab fair-record-modelMatlab fair-record-model
Matlab fair-record-model
 
Pixel rf
Pixel rfPixel rf
Pixel rf
 
Frequency modulation
Frequency modulationFrequency modulation
Frequency modulation
 
射頻電子 - [第一章] 知識回顧與通訊系統簡介
射頻電子 - [第一章] 知識回顧與通訊系統簡介射頻電子 - [第一章] 知識回顧與通訊系統簡介
射頻電子 - [第一章] 知識回顧與通訊系統簡介
 
Eece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transformEece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transform
 
RF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF TransceiversRF Module Design - [Chapter 1] From Basics to RF Transceivers
RF Module Design - [Chapter 1] From Basics to RF Transceivers
 
Mathematical support for preventive maintenance periodicity optimization of r...
Mathematical support for preventive maintenance periodicity optimization of r...Mathematical support for preventive maintenance periodicity optimization of r...
Mathematical support for preventive maintenance periodicity optimization of r...
 
7076 chapter5 slides
7076 chapter5 slides7076 chapter5 slides
7076 chapter5 slides
 
4. cft
4. cft4. cft
4. cft
 
meee.docx
meee.docxmeee.docx
meee.docx
 

More from Rakesh kumar jha

More from Rakesh kumar jha (11)

matlab code of shifting and folding of two sequences
matlab code of shifting and folding of two sequencesmatlab code of shifting and folding of two sequences
matlab code of shifting and folding of two sequences
 
MATLAB CODE OF Shifting sequence
MATLAB  CODE  OF Shifting sequenceMATLAB  CODE  OF Shifting sequence
MATLAB CODE OF Shifting sequence
 
Verilog coding of demux 8 x1
Verilog coding of demux  8 x1Verilog coding of demux  8 x1
Verilog coding of demux 8 x1
 
Verilog coding of mux 8 x1
Verilog coding of mux  8 x1Verilog coding of mux  8 x1
Verilog coding of mux 8 x1
 
Verilog code for decoder
Verilog code for decoderVerilog code for decoder
Verilog code for decoder
 
VERILOG CODE FOR Adder
VERILOG CODE FOR AdderVERILOG CODE FOR Adder
VERILOG CODE FOR Adder
 
verilog code for logic gates
verilog code for logic gatesverilog code for logic gates
verilog code for logic gates
 
Reversible code converter
Reversible code converterReversible code converter
Reversible code converter
 
Ujt
UjtUjt
Ujt
 
Pin diode
Pin diodePin diode
Pin diode
 
Schottky diode
Schottky diodeSchottky diode
Schottky diode
 

Recently uploaded

Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdfKamal Acharya
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxMd. Shahidul Islam Prodhan
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdfKamal Acharya
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringDr. Radhey Shyam
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationRobbie Edward Sayers
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdfKamal Acharya
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Krakówbim.edu.pl
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdfAhmedHussein950959
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdfKamal Acharya
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringC Sai Kiran
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfKamal Acharya
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsAtif Razi
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectRased Khan
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxwendy cai
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfKamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfKamal Acharya
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-IVigneshvaranMech
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
 

Recently uploaded (20)

Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Kraków
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 

Matlab implementation of fast fourier transform

  • 1. MATLAB IMPLEMENTATION OF FFT PROF. RAKESH K. JHA CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA) DEPARTMENT OF ELECTRONICS & COMMUNICATION MATLAB IMPLEMENTATION OF FAST FOURIER TRANSFORM % fft of 10 hz and 20 hz signal clear all; clc; close all; fs= 100; f1=10 ; f2= 20 ; nfft=1024; %plot 10 hz signal t=-1:1/fs:1; y1= sin(2*pi*f1*t); figure; plot(t,y1) xlabel('----->t'); ylabel('sin(2*pi*f1*t)'); title('10 hz ferquency signal'); %plot 20 hz signal t=-1:1/fs:1; y2= sin(2*pi*f2*t); figure; plot(t,y2) xlabel('----->t'); ylabel('sin(2*pi*f2*t)'); title('20 hz ferquency signal'); %addition of two signals y3= y1+y2; figure; plot(t,y3) xlabel('----->t'); ylabel('sin(2*pi*f1*t)+sin(2*pi*f2*t)'); title(' addition of two signal'); % appended signal y4=[y1,y2]; figure plot(y4); xlabel('---->t'); ylabel('appended signal'); title(' plot appending of two signals'); %fft of y1 x1= fft(y1,nfft) x1= x1(1:nfft/2) mx1= abs(x1); f=(1:nfft/2)*fs/nfft; figure plot(f,mx1); xlabel(' frequency in hz'); ylabel('power'); title('fft of 10 hz signal'); %fft of y2 x2= fft(y2,nfft); x2=x2(1:nfft/2); mx2= abs(x2); f=(0:nfft/2-1)*fs/nfft; figure plot(f,mx2);
  • 2. MATLAB IMPLEMENTATION OF FFT PROF. RAKESH K. JHA CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA) DEPARTMENT OF ELECTRONICS & COMMUNICATION xlabel(' frequency in hz'); ylabel('power'); title('fft of 20 hz signal'); % fft of added signal y3 x3= fft(y3,nfft); x3=x3(1:nfft/2); mx3= abs(x3); f=(0:nfft/2-1)*fs/nfft; figure plot(f,mx3); xlabel(' frequency in hz'); ylabel('power'); title('fft of added signal'); %fft of appended signal x4= fft(y4,nfft); x4=x4(1:nfft/2); mx4=abs(x4); f=(0:nfft/2-1)*fs/nfft; figure plot(f,mx4); xlabel(' frequency in hz'); ylabel('power'); title('fft of appended signal'); RESULTS: -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 ----->t sin(2*pi*f1*t) 10 hz ferquency signal
  • 3. MATLAB IMPLEMENTATION OF FFT PROF. RAKESH K. JHA CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA) DEPARTMENT OF ELECTRONICS & COMMUNICATION -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 ----->t sin(2*pi*f2*t) 20 hz ferquency signal -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 ----->t sin(2*pi*f1*t)+sin(2*pi*f2*t) addition of two signal
  • 4. MATLAB IMPLEMENTATION OF FFT PROF. RAKESH K. JHA CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA) DEPARTMENT OF ELECTRONICS & COMMUNICATION 0 50 100 150 200 250 300 350 400 450 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 ---->t appendedsignal plot appending of two signals 0 5 10 15 20 25 30 35 40 45 50 0 10 20 30 40 50 60 70 80 90 100 frequency in hz power fft of 10 hz signal
  • 5. MATLAB IMPLEMENTATION OF FFT PROF. RAKESH K. JHA CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA) DEPARTMENT OF ELECTRONICS & COMMUNICATION 0 5 10 15 20 25 30 35 40 45 50 0 10 20 30 40 50 60 70 80 90 100 frequency in hz power fft of 20 hz signal 0 5 10 15 20 25 30 35 40 45 50 0 10 20 30 40 50 60 70 80 90 100 frequency in hz power fft of added signal
  • 6. MATLAB IMPLEMENTATION OF FFT PROF. RAKESH K. JHA CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL ( INDIA) DEPARTMENT OF ELECTRONICS & COMMUNICATION 0 5 10 15 20 25 30 35 40 45 50 0 10 20 30 40 50 60 70 80 90 100 frequency in hz power fft of appended signal