MATLAB Session 5 ES 156 Signals and Systems 2007 HSEAS Prepared by Frank Tompkins.

Slides:



Advertisements
Similar presentations
DCSP-12 Jianfeng Feng
Advertisements

DCSP-13 Jianfeng Feng Department of Computer Science Warwick Univ., UK
1 Fast Multiplication of Large Numbers Using Fourier Techniques Henry Skiba Advisor: Dr. Marcus Pendergrass.
Digital Kommunikationselektronik TNE027 Lecture 5 1 Fourier Transforms Discrete Fourier Transform (DFT) Algorithms Fast Fourier Transform (FFT) Algorithms.
Ch.4 Fourier Analysis of Discrete-Time Signals
Chapter 8: The Discrete Fourier Transform
FFT-based filtering and the Short-Time Fourier Transform (STFT) R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Introduction to Fast Fourier Transform (FFT) Algorithms R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
Image Fourier Transform Faisal Farooq Q: How many signal processing engineers does it take to change a light bulb? A: Three. One to Fourier transform the.
Final Project Part I MATLAB Session
Chapter 12 Fourier Transforms of Discrete Signals.
MATLAB Session 6 ES 156 Signals and Systems 2007 HSEAS Prepared by Jiajun Gu.
Discrete-Time Fourier Methods
EECS 20 Chapter 9 Part 21 Convolution, Impulse Response, Filters Last time we Revisited the impulse function and impulse response Defined the impulse (Dirac.
MATLAB Session 3 ES 156 Signals and Systems 2007 Harvard SEAS Prepared by Frank Tompkins.
Continuous Time Signals All signals in nature are in continuous time.
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
Systems: Definition Filter
Discrete-Time Fourier Series
Discrete-Time and System (A Review)
DTFT And Fourier Transform
Numerical Analysis – Digital Signal Processing Hanyang University Jong-Il Park.
Outline 2-D Fourier transforms The sampling theorem Sampling Aliasing
CHAPTER 8 DSP Algorithm Implementation Wang Weilian School of Information Science and Technology Yunnan University.
Outline  Fourier transforms (FT)  Forward and inverse  Discrete (DFT)  Fourier series  Properties of FT:  Symmetry and reciprocity  Scaling in time.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Introduction to the IEEE Derivation of the DFT Relationship to DTFT DFT of Truncated.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 19.
Digital Signal Processing – Chapter 10
Discrete Fourier Transform Prof. Siripong Potisuk.
Signal and Systems Prof. H. Sameti Chapter 5: The Discrete Time Fourier Transform Examples of the DT Fourier Transform Properties of the DT Fourier Transform.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
The Discrete Fourier Transform 主講人:虞台文. Content Introduction Representation of Periodic Sequences – DFS (Discrete Fourier Series) Properties of DFS The.
Zhongguo Liu_Biomedical Engineering_Shandong Univ. Chapter 8 The Discrete Fourier Transform Zhongguo Liu Biomedical Engineering School of Control.
Real time DSP Professors: Eng. Julian S. Bruno Eng. Jerónimo F. Atencio Sr. Lucio Martinez Garbino.
Fourier Analysis of Discrete Time Signals
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
Fourier Transform.
Fourier and Wavelet Transformations Michael J. Watts
Professor A G Constantinides 1 Discrete Fourier Transforms Consider finite duration signal Its z-tranform is Evaluate at points on z-plane as We can evaluate.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Derivation of the DFT Relationship to DTFT DFT of Truncated Signals.
Lecture 2 Outline “Fun” with Fourier Announcements: Poll for discussion section and OHs: please respond First HW posted 5pm tonight Duality Relationships.
EC1358 – DIGITAL SIGNAL PROCESSING
Eeng Chapter 2 Discrete Fourier Transform (DFT) Topics:  Discrete Fourier Transform. Using the DFT to Compute the Continuous Fourier Transform.
Dr. Michael Nasief Digital Signal Processing Lec 7 1.
Husheng Li, UTK-EECS, Fall The specification of filter is usually given by the tolerance scheme.  Discrete Fourier Transform (DFT) has both discrete.
Real-time Digital Signal Processing Digital Filters.
Lecture 19 Spectrogram: Spectral Analysis via DFT & DTFT
Integral Transform Method
Section II Digital Signal Processing ES & BM.
DIGITAL SIGNAL PROCESSING ELECTRONICS
Lecture 11 FIR Filtering Intro
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
Outline 2-D Fourier transforms The sampling theorem Sampling Aliasing
FFT-based filtering and the
Fourier and Wavelet Transformations
Sampling and the Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
Z TRANSFORM AND DFT Z Transform
Lecture 18 DFS: Discrete Fourier Series, and Windowing
Lecture 17 DFT: Discrete Fourier Transform
Chapter 2 Discrete Fourier Transform (DFT)
Signal Processing First
Chapter 8 The Discrete Fourier Transform
Chapter 8 The Discrete Fourier Transform
Lecture 22 IIR Filters: Feedback and H(z)
Matlab Tutorial #2 Kathleen Chen February 13, 2018.
EE150: Signals and Systems 2016-Spring
CE Digital Signal Processing Fall Discrete Fourier Transform (DFT)
Fourier Transforms of Discrete Signals By Dr. Varsha Shah
Presentation transcript:

MATLAB Session 5 ES 156 Signals and Systems 2007 HSEAS Prepared by Frank Tompkins

Outline Fourier transforms in MATLAB –DTFT computation Two methods An example Digital filtering in MATLAB –FIR and IIR

Fourier Transform Fourier Transforms –Continuous Time Fourier Transform (CTFT) –Discrete Time Fourier Transform (DTFT)

Fourier Transform Computation How to compute transforms on a computer? CTFT is continuous, so that’s out Can we compute DTFT?

DTFT Computation Infinite length discrete time signals –DTFT defined on continuous frequency interval of length 2  ; not computer friendly What do we do? –Only deal with finite length signals –Recall: discrete time Fourier series has finitely many coefficients –So, we can use DTFS coefficients More detail on this technique, called Discrete Fourier Transform, or DFT, later in the course –For now, just how to compute and plot “Fourier transform” in MATLAB All the acronyms can be overwhelming, but we’ve seen almost all by now

DTFT Computation (method 1) Given finite length N signal, extend it to infinity by padding with zeros to make X[n] –DTFT X(e j  ) has period 2  –Instead of storing X(e j  ) for every possible , we can store N evenly spaced values of  –Then, define X[k] = X(e j2  k  ) –The coefficients X[k] have period N MATLAB command fft() computes X[k] –Side note: FFT (sorry, one more acronym: Fast Fourier Transform) is a popular algorithm that computes transforms quickly – not important now

DTFT Computation (method 2) Another perspective –Treat finite length N signal X[n] as a periodic (infinite length) signal Xp[n] with period N –Compute the DTFS of Xp[n], a k –Define X[k] = a k Note: X[k] has period N, just like X[n] These two approaches are equivalent –For now, think of DTFT/DFT in whichever way is easier for you (probably method 1)

Example: DTFT of rectangular signal Rectangular signal

Example: DTFT of rectangular signal x=[zeros(1,10) ones(1,7) zeros(1,10)]; y=fft(x); figure; subplot(2,1,1); stem(x); subplot(2,1,2); plot(abs(y))

Example: DTFT of rectangular signal

Zero padding - finer scale in Fourier transform y2=fft(x,64); y3=fft(x,128); figure; subplot(3,1,1); plot(abs(y)) subplot(3,1,2); plot(abs(y2)) subplot(3,1,3); plot(abs(y3))

fftshift() By default, MATLAB’s fft() command outputs X(e j2  k  ) for 0 <= 2  k/N < 2  To get the output into the standard range of –  to , use the fftshift() command: my_xform = fftshift(fft(my_signal));

Filters – FIR vs. IIR A discrete time LTI filter can be expressed as a difference equation If all a(i)’s are zero except a(1) we call it FIR, otherwise it’s IIR MATLAB: z = filter(b,a,x)

Filter example Input: x[n] is the rectangular signal from before The difference equation describing the filter is a=[1,-1]; b=1; z=filter(b,a,x) figure; subplot(2,1,1); stem(x); subplot(2,1,2) stem(z);