SlideShare a Scribd company logo
1
Lab Report:
Submitted By :
Syed Abuzar Hussain Shah
Reg #
SP15-BEE-096
Submitted To:
Sir Usman
Class:
BEE-5A
Dated: 16/03/2017
2
Introduction:
In today’s Lab we will take a continuous time signal and use “fft” to estimate its continuous time
frequency
transform.
Commands to be used:
• plot
• real
• exp
• imag
• fft
• fftshift
• linspace
• sin/cos
Task 1): Firstly, take a continuous time sinusoidal with fundamental
frequency of fn=50 Hz & a simulated
sampling frequency of fs=1000Hz.
x(𝑡)= cos(2𝜋𝑓𝑛𝑡)
Code:
clc
clear all
close all fs=1000;
t=(-50:50)/fs;
fn=50;
N=1200;
x=cos(2*pi*fn*t);
subplot(221)
plot(t*1000,x);
title('cos(2 pi 100t)')
ylabel('Amp')
xlabel(['T_n= ' num2str(1/fn*1000) 'msec'])
grid on;
X=fftshift(fft(x,N));
om=linspace(-fs/2,fs/2,N);
subplot(222)
plot(om,abs(X))
ylabel('Magnitude')
xlabel(' omega(rad/sec)')
title('X(j Omega)')
grid on;
subplot(223)
plot(om,real(X))
ylabel('Real')
3
xlabel(' omega(rad/sec)')
title('Re(X(j Omega))')
grid on;
subplot(224)
plot(om,imag(X))
ylabel('Imaginary')
xlabel(' omega(rad/sec)')
title('Im(X(j Omega))')
grid on;
Task 2): Generate a stationary signal.
y(𝑡)= cos(2𝜋(100)𝑡)+ cos(2𝜋(65)𝑡)
Code:
clc
clear all
close all
fs=1000;
N=1200;
t=(-50:50)/fs;
fn1=100;
fn2 = 65;
y=cos(2*pi*fn1*t)+cos(2*pi*fn2*t);
subplot(221)
plot(t*1000,y);
4
xlabel('ms')
ylabel('Amp')
title('cos(2 pi 100t)+cos(2 pi 65t)')
grid on;
X2=fftshift(fft(y));
subplot(222)
plot(t*1000,abs(X2))
title('fftshift |X(e^j^Omega)|')
xlabel('Omega (rad/sec)')
ylabel('Magnitude')
grid on;
subplot(223)
X3=fftshift(fft(y,N));
om=linspace(-fs/2,fs/2,N);
plot(om,real(X3))
title('Re(X(e^j^Omega))')
xlabel('Omega (rad/sec)')
ylabel('Real')
grid on;
subplot(224)
plot(om,imag(X3));
title('Im(X(e^j^Omega))')
xlabel('Omega (rad/sec)')
ylabel('Imaginary')
grid on;
5
b) Non Stationary Signal:
y(𝑡)= cos(2𝜋(100)𝑓𝑠𝑡)𝑢(𝑡 − 10)+ cos(2𝜋(65)𝑓𝑠𝑡)𝑢(−𝑡 + 2)
Code:
clc
clear all
close all
N=1200;
fs=1000;
t=(-50:50);
y=(cos(2*pi*100/fs*t).*heaviside(t-10))+(cos(2*pi*65/fs*t).*heaviside(-t+2));
subplot(321)
plot(t/fs*1000,y)
grid on
xlabel 'ms'
ylabel 'amp'
Y=fft(y);
subplot(323)
plot(t/fs*1000,abs(Y))
axis([-500 500 0 40])
title('fft X(e^j^Omega)')
xlabel('Omega (rad/sec)')
ylabel('Magnitude')
grid on;
Y1=fft(y,N);
om=linspace(-fs/2,fs/2,N);
subplot(324)
plot(om,abs(Y1))
title('fftshift |X(e^j^Omega)|')
xlabel('Omega (rad/sec)')
ylabel('Magnitude')
grid on;
Y2=fftshift(fft(y,N));
subplot(325)
plot(om,real(Y2))
title('fftshift Re(X(e^j^Omega))')
xlabel('Omega (rad/sec)')
ylabel('Real')
6
grid on;
Y3=fftshift(fft(y,N));
om=linspace(-fs/2,fs/2,N);
subplot(326)
plot(om,imag(Y3))
title('fftshift Ima(X(e^j^Omega))')
xlabel('Omega (rad/sec)')
ylabel('Imaginary')
grid on;
7
Questions:
1) Provide your analysis for the change in frequency fn.
Ans:
Due to change in frequency ,time period also changes. If we increase the fn,
then Tn will decrease propotionaly.
Or in the case of natural frequency and the sampling frequency
Fs≥2fn
According to the above theorem “when the sampling frequency is less than
the double of the natural frequency then this result in the loss of the
information and produce disturbance in our required signal and in short
we lost our information”.
2) What is meant by the terms frequency resolution and time
resolution.
Ans:
Frequency resolution is the distance in Hz between two adjacent data points in
the Discrete Fourier Transform. The frequency resolution of a DFT is denoted
as Fs.
Time resolution denotes a spectroscopic technique in which a spectrum is
obtained at a series of time intervals after excitation of the sample. The
Sampling Time period of a DFT is denoted as Ts.
3) Do you think Fourier Transform provides all required
information for stationary and nonstationary signals?
Ans:
No, I don’t think that fourier transform provides us all required information
because when we applied fourier transform to the non stationary signals, it
results in the lost of information. In case of stationary signal, less data is lost.
Conclusion:
In this lab I had learnt alot of things about plotting of
different signals, taking fourier transform, shifted fourier transform etc.
I had learnt how changing frequency affects the time period of signal.
How Sampling is done and how we choose samples . At the end it is quite
useful lab.

More Related Content

What's hot

Sound analysis and processing with MATLAB
Sound analysis and processing with MATLABSound analysis and processing with MATLAB
Sound analysis and processing with MATLAB
Tan Hoang Luu
 
Pn sequence
Pn sequencePn sequence
Pn sequence
Darshil Shah
 
noise removal in matlab
noise removal in matlabnoise removal in matlab
noise removal in matlab
umarjamil10000
 
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignDSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
Amr E. Mohamed
 
Fft analysis
Fft analysisFft analysis
Fft analysis
AldinoAldo
 
DSP_FOEHU - Lec 03 - Sampling of Continuous Time Signals
DSP_FOEHU - Lec 03 - Sampling of Continuous Time SignalsDSP_FOEHU - Lec 03 - Sampling of Continuous Time Signals
DSP_FOEHU - Lec 03 - Sampling of Continuous Time Signals
Amr E. Mohamed
 
Programmable PN Sequence Generators
Programmable PN Sequence GeneratorsProgrammable PN Sequence Generators
Programmable PN Sequence Generators
Rajesh Singh
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
Amr E. Mohamed
 
DSP Lab 1-6.pdf
DSP Lab 1-6.pdfDSP Lab 1-6.pdf
DSP Lab 1-6.pdf
SaiSumanthK1
 
Ff tand matlab-wanjun huang
Ff tand matlab-wanjun huangFf tand matlab-wanjun huang
Ff tand matlab-wanjun huang
Sagar Ahir
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
Agam Goel
 
Radio ad blocker
Radio ad blockerRadio ad blocker
Radio ad blocker
Tomasz Rękawek
 
Fast Fourier Transform Analysis
Fast Fourier Transform AnalysisFast Fourier Transform Analysis
Fast Fourier Transform Analysis
dhikadixiana
 
Chap 4
Chap 4Chap 4
Chap 4
Tanuj Patel
 
DSP_FOEHU - Lec 09 - Fast Fourier Transform
DSP_FOEHU - Lec 09 - Fast Fourier TransformDSP_FOEHU - Lec 09 - Fast Fourier Transform
DSP_FOEHU - Lec 09 - Fast Fourier Transform
Amr E. Mohamed
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
Minh Anh Nguyen
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation ppt
sanjeev2419
 
Matlab task1
Matlab task1Matlab task1
Matlab task1
Martin Wachiye Wafula
 
Brief Review of Fourier Analysis
Brief Review of Fourier AnalysisBrief Review of Fourier Analysis
Brief Review of Fourier Analysis
op205
 

What's hot (19)

Sound analysis and processing with MATLAB
Sound analysis and processing with MATLABSound analysis and processing with MATLAB
Sound analysis and processing with MATLAB
 
Pn sequence
Pn sequencePn sequence
Pn sequence
 
noise removal in matlab
noise removal in matlabnoise removal in matlab
noise removal in matlab
 
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter DesignDSP_2018_FOEHU - Lec 06 - FIR Filter Design
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
 
Fft analysis
Fft analysisFft analysis
Fft analysis
 
DSP_FOEHU - Lec 03 - Sampling of Continuous Time Signals
DSP_FOEHU - Lec 03 - Sampling of Continuous Time SignalsDSP_FOEHU - Lec 03 - Sampling of Continuous Time Signals
DSP_FOEHU - Lec 03 - Sampling of Continuous Time Signals
 
Programmable PN Sequence Generators
Programmable PN Sequence GeneratorsProgrammable PN Sequence Generators
Programmable PN Sequence Generators
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
DSP Lab 1-6.pdf
DSP Lab 1-6.pdfDSP Lab 1-6.pdf
DSP Lab 1-6.pdf
 
Ff tand matlab-wanjun huang
Ff tand matlab-wanjun huangFf tand matlab-wanjun huang
Ff tand matlab-wanjun huang
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
 
Radio ad blocker
Radio ad blockerRadio ad blocker
Radio ad blocker
 
Fast Fourier Transform Analysis
Fast Fourier Transform AnalysisFast Fourier Transform Analysis
Fast Fourier Transform Analysis
 
Chap 4
Chap 4Chap 4
Chap 4
 
DSP_FOEHU - Lec 09 - Fast Fourier Transform
DSP_FOEHU - Lec 09 - Fast Fourier TransformDSP_FOEHU - Lec 09 - Fast Fourier Transform
DSP_FOEHU - Lec 09 - Fast Fourier Transform
 
The method of comparing two audio files
The method of comparing two audio filesThe method of comparing two audio files
The method of comparing two audio files
 
Pulse Modulation ppt
Pulse Modulation pptPulse Modulation ppt
Pulse Modulation ppt
 
Matlab task1
Matlab task1Matlab task1
Matlab task1
 
Brief Review of Fourier Analysis
Brief Review of Fourier AnalysisBrief Review of Fourier Analysis
Brief Review of Fourier Analysis
 

Similar to FFT

Performance analysis of wavelet based blind detection and hop time estimation...
Performance analysis of wavelet based blind detection and hop time estimation...Performance analysis of wavelet based blind detection and hop time estimation...
Performance analysis of wavelet based blind detection and hop time estimation...
Saira Shahid
 
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsDSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
Amr E. Mohamed
 
Slide Handouts with Notes
Slide Handouts with NotesSlide Handouts with Notes
Slide Handouts with Notes
Leon Nguyen
 
Ft and FFT
Ft and FFTFt and FFT
RES701 Research Methodology_FFT
RES701 Research Methodology_FFTRES701 Research Methodology_FFT
RES701 Research Methodology_FFT
VIT University (Chennai Campus)
 
07 lecture
07 lecture07 lecture
07 lecture
Fatima Tahir
 
Fourier series
Fourier seriesFourier series
Fourier series
COMSATS Abbottabad
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
ssuser2797e4
 
Dsp Lab Record
Dsp Lab RecordDsp Lab Record
Dsp Lab Record
Aleena Varghese
 
Parseval's Theorem
Parseval's TheoremParseval's Theorem
Parseval's Theorem
COMSATS Abbottabad
 
DIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLAB
DIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLABDIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLAB
DIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLAB
Martin Wachiye Wafula
 
Time-Frequency Representation of Microseismic Signals using the SST
Time-Frequency Representation of Microseismic Signals using the SSTTime-Frequency Representation of Microseismic Signals using the SST
Time-Frequency Representation of Microseismic Signals using the SST
UT Technology
 
Implementation of adaptive stft algorithm for lfm signals
Implementation of adaptive stft algorithm for lfm signalsImplementation of adaptive stft algorithm for lfm signals
Implementation of adaptive stft algorithm for lfm signals
eSAT Journals
 
Fourier slide
Fourier slideFourier slide
Fourier slide
ssuser65bfce
 
1-Wang-FR1020-IGARSS11.pptx
1-Wang-FR1020-IGARSS11.pptx1-Wang-FR1020-IGARSS11.pptx
1-Wang-FR1020-IGARSS11.pptx
grssieee
 
An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...
An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...
An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...
Editor IJCATR
 
Speech signal time frequency representation
Speech signal time frequency representationSpeech signal time frequency representation
Speech signal time frequency representation
Nikolay Karpov
 
Lecture9
Lecture9Lecture9
Lecture9
babak danyal
 
Lecture9 Signal and Systems
Lecture9 Signal and SystemsLecture9 Signal and Systems
Lecture9 Signal and Systems
babak danyal
 
Signal Processing
Signal ProcessingSignal Processing
Signal Processing
Shayan Mamaghani
 

Similar to FFT (20)

Performance analysis of wavelet based blind detection and hop time estimation...
Performance analysis of wavelet based blind detection and hop time estimation...Performance analysis of wavelet based blind detection and hop time estimation...
Performance analysis of wavelet based blind detection and hop time estimation...
 
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsDSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
 
Slide Handouts with Notes
Slide Handouts with NotesSlide Handouts with Notes
Slide Handouts with Notes
 
Ft and FFT
Ft and FFTFt and FFT
Ft and FFT
 
RES701 Research Methodology_FFT
RES701 Research Methodology_FFTRES701 Research Methodology_FFT
RES701 Research Methodology_FFT
 
07 lecture
07 lecture07 lecture
07 lecture
 
Fourier series
Fourier seriesFourier series
Fourier series
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
 
Dsp Lab Record
Dsp Lab RecordDsp Lab Record
Dsp Lab Record
 
Parseval's Theorem
Parseval's TheoremParseval's Theorem
Parseval's Theorem
 
DIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLAB
DIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLABDIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLAB
DIGITAL SIGNAL PROCESSING: Sampling and Reconstruction on MATLAB
 
Time-Frequency Representation of Microseismic Signals using the SST
Time-Frequency Representation of Microseismic Signals using the SSTTime-Frequency Representation of Microseismic Signals using the SST
Time-Frequency Representation of Microseismic Signals using the SST
 
Implementation of adaptive stft algorithm for lfm signals
Implementation of adaptive stft algorithm for lfm signalsImplementation of adaptive stft algorithm for lfm signals
Implementation of adaptive stft algorithm for lfm signals
 
Fourier slide
Fourier slideFourier slide
Fourier slide
 
1-Wang-FR1020-IGARSS11.pptx
1-Wang-FR1020-IGARSS11.pptx1-Wang-FR1020-IGARSS11.pptx
1-Wang-FR1020-IGARSS11.pptx
 
An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...
An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...
An Overview of Array Signal Processing and Beam Forming TechniquesAn Overview...
 
Speech signal time frequency representation
Speech signal time frequency representationSpeech signal time frequency representation
Speech signal time frequency representation
 
Lecture9
Lecture9Lecture9
Lecture9
 
Lecture9 Signal and Systems
Lecture9 Signal and SystemsLecture9 Signal and Systems
Lecture9 Signal and Systems
 
Signal Processing
Signal ProcessingSignal Processing
Signal Processing
 

More from COMSATS Abbottabad

Kalman filter
Kalman filterKalman filter
Kalman filter
COMSATS Abbottabad
 
Enterpreneurship
EnterpreneurshipEnterpreneurship
Enterpreneurship
COMSATS Abbottabad
 
Sine wave inverter
Sine wave inverterSine wave inverter
Sine wave inverter
COMSATS Abbottabad
 
Light Tracking Solar Panel
Light Tracking Solar PanelLight Tracking Solar Panel
Light Tracking Solar Panel
COMSATS Abbottabad
 
Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical System
COMSATS Abbottabad
 
coding and burning program in FPGA
coding and burning program in FPGAcoding and burning program in FPGA
coding and burning program in FPGA
COMSATS Abbottabad
 
8 bit full adder
8 bit full adder8 bit full adder
8 bit full adder
COMSATS Abbottabad
 
Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)
COMSATS Abbottabad
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
COMSATS Abbottabad
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086
COMSATS Abbottabad
 
Addition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageAddition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly language
COMSATS Abbottabad
 
Mathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabMathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in Matlab
COMSATS Abbottabad
 
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLABMathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
COMSATS Abbottabad
 
Introduction to MATLAB
Introduction to MATLAB Introduction to MATLAB
Introduction to MATLAB
COMSATS Abbottabad
 
Encoder + decoder
Encoder + decoderEncoder + decoder
Encoder + decoder
COMSATS Abbottabad
 
Principles of Communication
Principles of CommunicationPrinciples of Communication
Principles of Communication
COMSATS Abbottabad
 
Aurduino coding for transformer interfacing
Aurduino coding for transformer interfacingAurduino coding for transformer interfacing
Aurduino coding for transformer interfacing
COMSATS Abbottabad
 
Transformer Interfacing with Laptop
Transformer Interfacing with LaptopTransformer Interfacing with Laptop
Transformer Interfacing with Laptop
COMSATS Abbottabad
 
Temperature control Switch and Display By Led
Temperature control Switch and Display By LedTemperature control Switch and Display By Led
Temperature control Switch and Display By Led
COMSATS Abbottabad
 
stress and strain
stress and strainstress and strain
stress and strain
COMSATS Abbottabad
 

More from COMSATS Abbottabad (20)

Kalman filter
Kalman filterKalman filter
Kalman filter
 
Enterpreneurship
EnterpreneurshipEnterpreneurship
Enterpreneurship
 
Sine wave inverter
Sine wave inverterSine wave inverter
Sine wave inverter
 
Light Tracking Solar Panel
Light Tracking Solar PanelLight Tracking Solar Panel
Light Tracking Solar Panel
 
Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical System
 
coding and burning program in FPGA
coding and burning program in FPGAcoding and burning program in FPGA
coding and burning program in FPGA
 
8 bit full adder
8 bit full adder8 bit full adder
8 bit full adder
 
Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086
 
Addition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageAddition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly language
 
Mathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabMathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in Matlab
 
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLABMathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
 
Introduction to MATLAB
Introduction to MATLAB Introduction to MATLAB
Introduction to MATLAB
 
Encoder + decoder
Encoder + decoderEncoder + decoder
Encoder + decoder
 
Principles of Communication
Principles of CommunicationPrinciples of Communication
Principles of Communication
 
Aurduino coding for transformer interfacing
Aurduino coding for transformer interfacingAurduino coding for transformer interfacing
Aurduino coding for transformer interfacing
 
Transformer Interfacing with Laptop
Transformer Interfacing with LaptopTransformer Interfacing with Laptop
Transformer Interfacing with Laptop
 
Temperature control Switch and Display By Led
Temperature control Switch and Display By LedTemperature control Switch and Display By Led
Temperature control Switch and Display By Led
 
stress and strain
stress and strainstress and strain
stress and strain
 

Recently uploaded

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
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
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
PKavitha10
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
SakkaravarthiShanmug
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
Madan Karki
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
ramrag33
 
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
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 
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
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 

Recently uploaded (20)

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
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
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
 
cnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classicationcnn.pptx Convolutional neural network used for image classication
cnn.pptx Convolutional neural network used for image classication
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 
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...
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 

FFT

  • 1. 1 Lab Report: Submitted By : Syed Abuzar Hussain Shah Reg # SP15-BEE-096 Submitted To: Sir Usman Class: BEE-5A Dated: 16/03/2017
  • 2. 2 Introduction: In today’s Lab we will take a continuous time signal and use “fft” to estimate its continuous time frequency transform. Commands to be used: • plot • real • exp • imag • fft • fftshift • linspace • sin/cos Task 1): Firstly, take a continuous time sinusoidal with fundamental frequency of fn=50 Hz & a simulated sampling frequency of fs=1000Hz. x(𝑡)= cos(2𝜋𝑓𝑛𝑡) Code: clc clear all close all fs=1000; t=(-50:50)/fs; fn=50; N=1200; x=cos(2*pi*fn*t); subplot(221) plot(t*1000,x); title('cos(2 pi 100t)') ylabel('Amp') xlabel(['T_n= ' num2str(1/fn*1000) 'msec']) grid on; X=fftshift(fft(x,N)); om=linspace(-fs/2,fs/2,N); subplot(222) plot(om,abs(X)) ylabel('Magnitude') xlabel(' omega(rad/sec)') title('X(j Omega)') grid on; subplot(223) plot(om,real(X)) ylabel('Real')
  • 3. 3 xlabel(' omega(rad/sec)') title('Re(X(j Omega))') grid on; subplot(224) plot(om,imag(X)) ylabel('Imaginary') xlabel(' omega(rad/sec)') title('Im(X(j Omega))') grid on; Task 2): Generate a stationary signal. y(𝑡)= cos(2𝜋(100)𝑡)+ cos(2𝜋(65)𝑡) Code: clc clear all close all fs=1000; N=1200; t=(-50:50)/fs; fn1=100; fn2 = 65; y=cos(2*pi*fn1*t)+cos(2*pi*fn2*t); subplot(221) plot(t*1000,y);
  • 4. 4 xlabel('ms') ylabel('Amp') title('cos(2 pi 100t)+cos(2 pi 65t)') grid on; X2=fftshift(fft(y)); subplot(222) plot(t*1000,abs(X2)) title('fftshift |X(e^j^Omega)|') xlabel('Omega (rad/sec)') ylabel('Magnitude') grid on; subplot(223) X3=fftshift(fft(y,N)); om=linspace(-fs/2,fs/2,N); plot(om,real(X3)) title('Re(X(e^j^Omega))') xlabel('Omega (rad/sec)') ylabel('Real') grid on; subplot(224) plot(om,imag(X3)); title('Im(X(e^j^Omega))') xlabel('Omega (rad/sec)') ylabel('Imaginary') grid on;
  • 5. 5 b) Non Stationary Signal: y(𝑡)= cos(2𝜋(100)𝑓𝑠𝑡)𝑢(𝑡 − 10)+ cos(2𝜋(65)𝑓𝑠𝑡)𝑢(−𝑡 + 2) Code: clc clear all close all N=1200; fs=1000; t=(-50:50); y=(cos(2*pi*100/fs*t).*heaviside(t-10))+(cos(2*pi*65/fs*t).*heaviside(-t+2)); subplot(321) plot(t/fs*1000,y) grid on xlabel 'ms' ylabel 'amp' Y=fft(y); subplot(323) plot(t/fs*1000,abs(Y)) axis([-500 500 0 40]) title('fft X(e^j^Omega)') xlabel('Omega (rad/sec)') ylabel('Magnitude') grid on; Y1=fft(y,N); om=linspace(-fs/2,fs/2,N); subplot(324) plot(om,abs(Y1)) title('fftshift |X(e^j^Omega)|') xlabel('Omega (rad/sec)') ylabel('Magnitude') grid on; Y2=fftshift(fft(y,N)); subplot(325) plot(om,real(Y2)) title('fftshift Re(X(e^j^Omega))') xlabel('Omega (rad/sec)') ylabel('Real')
  • 7. 7 Questions: 1) Provide your analysis for the change in frequency fn. Ans: Due to change in frequency ,time period also changes. If we increase the fn, then Tn will decrease propotionaly. Or in the case of natural frequency and the sampling frequency Fs≥2fn According to the above theorem “when the sampling frequency is less than the double of the natural frequency then this result in the loss of the information and produce disturbance in our required signal and in short we lost our information”. 2) What is meant by the terms frequency resolution and time resolution. Ans: Frequency resolution is the distance in Hz between two adjacent data points in the Discrete Fourier Transform. The frequency resolution of a DFT is denoted as Fs. Time resolution denotes a spectroscopic technique in which a spectrum is obtained at a series of time intervals after excitation of the sample. The Sampling Time period of a DFT is denoted as Ts. 3) Do you think Fourier Transform provides all required information for stationary and nonstationary signals? Ans: No, I don’t think that fourier transform provides us all required information because when we applied fourier transform to the non stationary signals, it results in the lost of information. In case of stationary signal, less data is lost. Conclusion: In this lab I had learnt alot of things about plotting of different signals, taking fourier transform, shifted fourier transform etc. I had learnt how changing frequency affects the time period of signal. How Sampling is done and how we choose samples . At the end it is quite useful lab.