Tutorial Sheet #2 discrete vs. continuous functions, periodicity, sampling

Similar documents
EA2.3 - Electronics 2 1

Review: Continuous Fourier Transform

Sensors. Chapter Signal Conditioning

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

Solutions to Problems in Chapter 4

Signals, Instruments, and Systems W5. Introduction to Signal Processing Sampling, Reconstruction, and Filters

Lecture 27 Frequency Response 2

VII. Bandwidth Limited Time Series

Signal Processing COS 323

Chapter 5 Frequency Domain Analysis of Systems

Chapter 2: The Fourier Transform

Up-Sampling (5B) Young Won Lim 11/15/12

Continuous-time Fourier Methods

EE Homework 13 - Solutions

EE301 Signals and Systems In-Class Exam Exam 3 Thursday, Apr. 20, Cover Sheet

(Refer Slide Time: 01:30)

LECTURE 12 Sections Introduction to the Fourier series of periodic signals

Fourier transform. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Chapter 5 Frequency Domain Analysis of Systems

Analog Digital Sampling & Discrete Time Discrete Values & Noise Digital-to-Analog Conversion Analog-to-Digital Conversion

G52IVG, School of Computer Science, University of Nottingham

ECE-700 Review. Phil Schniter. January 5, x c (t)e jωt dt, x[n]z n, Denoting a transform pair by x[n] X(z), some useful properties are

The Discrete Fourier Transform

Signals & Systems. Chapter 7: Sampling. Adapted from: Lecture notes from MIT, Binghamton University, and Purdue. Dr. Hamid R.

IB Paper 6: Signal and Data Analysis

X. Chen More on Sampling

Grades will be determined by the correctness of your answers (explanations are not required).

A3. Frequency Representation of Continuous Time and Discrete Time Signals

ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals. 1. Sampling and Reconstruction 2. Quantization

CHAPTER 4 FOURIER SERIES S A B A R I N A I S M A I L

ESS Finite Impulse Response Filters and the Z-transform

ω 0 = 2π/T 0 is called the fundamental angular frequency and ω 2 = 2ω 0 is called the

Here is a summary of our last chapter, where we express a periodic wave as a Fourier series.

MITOCW MITRES_6-007S11lec09_300k.mp4

EE 261 The Fourier Transform and its Applications Fall 2007 Problem Set Eight Solutions

Bridge between continuous time and discrete time signals

Digital Filters Ying Sun

Topic 3: Fourier Series (FS)

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

Chap 4. Sampling of Continuous-Time Signals

FOURIER ANALYSIS using Python

Spectra (2A) Young Won Lim 11/8/12

ESE 250: Digital Audio Basics. Week 4 February 5, The Frequency Domain. ESE Spring'13 DeHon, Kod, Kadric, Wilson-Shah

Continuous Time Signal Analysis: the Fourier Transform. Lathi Chapter 4

EE422G Homework #9 Solution

Homework 4. May An LTI system has an input, x(t) and output y(t) related through the equation y(t) = t e (t t ) x(t 2)dt

Continuous Fourier transform of a Gaussian Function

ANALOG AND DIGITAL SIGNAL PROCESSING ADSP - Chapter 8

Transform Representation of Signals

2A1H Time-Frequency Analysis II

Down-Sampling (4B) Young Won Lim 11/15/12

Lecture 7: z-transform Properties, Sampling and Nyquist Sampling Theorem

Down-Sampling (4B) Young Won Lim 10/25/12

University Physics 226N/231N Old Dominion University. Chapter 14: Oscillatory Motion

Grades will be determined by the correctness of your answers (explanations are not required).

Part: Frequency and Time Domain

L6: Short-time Fourier analysis and synthesis

ECG782: Multidimensional Digital Signal Processing

Topic 5 Notes Jeremy Orloff. 5 Homogeneous, linear, constant coefficient differential equations

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING

Modern Digital Communication Techniques Prof. Suvra Sekhar Das G. S. Sanyal School of Telecommunication Indian Institute of Technology, Kharagpur

01 Harmonic Oscillations

NAME: 11 December 2013 Digital Signal Processing I Final Exam Fall Cover Sheet

Detailed Solutions to Exercises

2 = = 0 Thus, the number which is largest in magnitude is equal to the number which is smallest in magnitude.

Lecture 28 Continuous-Time Fourier Transform 2

Time and Spatial Series and Transforms

Introduction to Fourier Transforms. Lecture 7 ELE 301: Signals and Systems. Fourier Series. Rect Example

PART 1. Review of DSP. f (t)e iωt dt. F(ω) = f (t) = 1 2π. F(ω)e iωt dω. f (t) F (ω) The Fourier Transform. Fourier Transform.


Networks and Systems Prof V.G K. Murti Department of Electrical Engineering Indian Institute of Technology, Madras Lecture - 10 Fourier Series (10)

Module 3 : Sampling and Reconstruction Lecture 22 : Sampling and Reconstruction of Band-Limited Signals

Homework 9 Solutions

Lab Fourier Analysis Do prelab before lab starts. PHSX 262 Spring 2011 Lecture 5 Page 1. Based with permission on lectures by John Getty

Communication Signals (Haykin Sec. 2.4 and Ziemer Sec Sec. 2.4) KECE321 Communication Systems I

TIME SERIES ANALYSIS

Digital Signal Processing

The Discrete-time Fourier Transform

LIMITS AND DERIVATIVES

1 Understanding Sampling

AP Calculus Chapter 9: Infinite Series

Properties of Fourier Series - GATE Study Material in PDF

Fourier Series and the DFT

Review of Discrete-Time System

Representing a Signal

SIGNALS AND SYSTEMS LABORATORY 14: The Rudiments of Antenna Design

The Discrete-Time Fourier

so mathematically we can say that x d [n] is a discrete-time signal. The output of the DT system is also discrete, denoted by y d [n].

Massachusetts Institute of Technology

DESIGN OF CMOS ANALOG INTEGRATED CIRCUITS

Lecture 8: Signal Reconstruction, DT vs CT Processing. 8.1 Reconstruction of a Band-limited Signal from its Samples

spring mass equilibrium position +v max

CMPT 889: Lecture 3 Fundamentals of Digital Audio, Discrete-Time Signals

[ ], [ ] [ ] [ ] = [ ] [ ] [ ]{ [ 1] [ 2]

E2.5 Signals & Linear Systems. Tutorial Sheet 1 Introduction to Signals & Systems (Lectures 1 & 2)

In this Lecture. Frequency domain analysis

Discrete Time Signals and Systems Time-frequency Analysis. Gloria Menegaz

Frequency Domain Representations of Sampled and Wrapped Signals

Introduction to Biomedical Engineering

Problem Sheet 1 Examples of Random Processes

Transcription:

2.39 utorial Sheet #2 discrete vs. continuous functions, periodicity, sampling We will encounter two classes of signals in this class, continuous-signals and discrete-signals. he distinct mathematical properties of each, especially in regards to Fourier transforms, requires us to have at least a basic understanding of the differences between them. First I will present some mostly non-mathematical intuition, then discuss some of the theory behind it. his material is meant to help you understand the labs and homeworks. Continuous-signals have, as their name suggests, a continuous independent variable. For example, the velocity of a moving body, like you moving around campus, could be considered a continuous signal at any time t the velocity is clearly defined. Notation is the common f(t), which you are used to from mathematics classes. In contrast, discrete signals are only defined at discrete independent variables. For example, the daily high temperature during a week is only defined for the 7 days. It would make no sense to compare the daily high of day (say Monday) to day.5. Other examples of discrete signals include census data and class attendance; if you think about it there are many others. Notation for discrete numbers is typically f[n], with the brackets emphasizing that n is a sequence. Graphically: 2 continuous function.5 f(t).5.5.5 2 2.5 3 3.5 t discrete function f[t] 5 2 3 4 5 6 7 8 9 t he distinction is very important to us because when we use computers to numerically perform mathematical operations we are confined to dealing with the properties of discrete numbers. hat is because typical computers are built with digital logic dealing with ultimately binary data. MALAB can approximate a continuous

function by generating values at small intervals of the independent variable, but there is a limit to how much such approximations actually mirror the real thing. It is that limit we are interested in. Sampling So how do we go from continuous to discrete signals? In the case of the moving body, if you were to measure the velocity with a radar gun and write down your reading every.5 seconds, you would in fact now have discrete data. We would say that your sampling frequency is 2 Hz, or 2 per second. Ideally, you would write down values at exactly every.5 seconds. Mathematically we can define this operation as multiplying an "impulse train" with your data, then passing it through a continuous to discrete converter or C/D converter. Let s examine the situation where you are on a swing, tracing the motion of a pendulum thus your velocity would be a sinusoid. Your velocity v(t) is thus equal to sin(t). Signal: vt sin( t) Impulse train: p( t) for t,, 2, pt otherwise Sampled: v t vt pt p velocity (m/s) impulse (unitless) sampled v(t) (m/s) - 2 3 4 5 6 7 time (s) 2 2 3 4 5 6 7 time (s) - 2 3 4 5 6 time (s) Performing this operation is known as "sampling" the function v(t) at the sampling frequency of /Δ, where is the period of the impulse train. Note that an impulse train can also be written as,,, 2,... p t t k If you sample v p (t) by multiplying with p(t) you will obtain a sampled signal. Note that the impulse train is still a continuous function although it looks discrete, since it s defined for every t. Also note that we are multiplying two signals in time, which by the convolution theorem which we saw in class means the transform of v p (t) equals the convolution of the signals in frequency: ( ) V ( ) * P( ). v p (t) becomes a discrete signal v p [t] V p

after running the signal through a C/D converter which will non-dimensionalize time into sample numbers (more on this and the convolution in frequency later). If v(t) is changing slowly enough for our sample rate to capture all the information contained in the signal, we can completely reconstruct v(t) based on the discrete sequence v p [t]. Stop and think about this for a while you can exactly reconstruct a function v(t) by knowing an infinitesimally smaller subset of information, as long as your sampling frequency is great enough. he cutoff point is called the Nyquist sampling frequency, and it is exactly twice the highest frequency you can reconstruct in your signal. his is known as the "sampling theorem": Sampling at F nyquist with F nyquist > 2*f max (where f max is the highest frequency in your signal of interest) allows complete reconstruction of the signal from its sampled values. A more formal way to say this ( = period): Sampling heorem, Oppenheim and Willsky, Signals and Systems page 58 Let x(t) be a band-limited signal with X( ) = for > max. hen x(t) is uniquely determined by its samples x(n), n =, ±, ±2,, if s > 2 max where s = 2π/. Given these samples, we can reconstruct x(t) by generating a periodic impulse train in which successive impulses have amplitudes that are successive sample values. his impulse train is then processed through an ideal lowpass filter with gain and cutoff frequency greater then max and less then s - max. he resulting output signal will exactly equal x(t). If your signal contains frequencies higher then half your sampling rate, then you are "undersampling" the signal and will not be able to reconstruct it fully. If you try to reconstruct it anyways you will encounter "aliasing", or distortion of the original signal. It s really useful to look at the graph below to see what this means if you aren t sampling fast enough you have no way of knowing if the signal you are observing is the red or blue one. wo different sinusoids that give the same samples; a high frequency (blue). (http://en.wikipedia.org/wiki/aliasing, accessed /5/6). (red) and an alias at Later we will see what aliasing looks like in the frequency plane. Background heory

I will present some basics to help understand hwk2, but the full mathematics behind it is outside the scope of this course. A course entitled "Signals and Systems", or the textbook of the same name by Oppenheim and Willsky (available in the lab) can fill in the blanks if you are interested. In class Prof. Manalis introduced the Fourier ransform for continuous signals, and its inverse. We will specify this transform as the CF, or Continuous ime Fourier ransform. Because MALAB doesn t work with continuous signals, when you want MALAB to perform a Fourier ransform it actually performs the Discrete Fourier ransform, or DF. In class we saw this table: ime Frequency Fourier series (CFS) Continuous (t) Discrete (w n ) Fourier integral (CF) Continuous (t) Continuous ( ) Discrete ime Fourier ransform (DF) Discrete [t] Continous (w) Discrete Fourier ransform (DF) Discrete [t] Discrete [2*pi*k/N] (I ve added the DF) he CFS maps a continuous, periodic signal to its harmonic (sinusoidal) components. his means that we are trying to mimic our signal with sines and cosines of integer multiples of the frequency (in radians) ω n = n = n*2pi/. he series of frequencies thus presents a discrete mapping in frequency space. Note from the formula that the CFS is aperiodic. CFS: a / 2 / 2 / 2 / 2 / 2 / 2 f t dt an f t cosnt dt bn f tsin nt dt 2 n n, n,2,3... CFS - (inverse): f t a a cos t b sin t n n n n n he CF is a generalization of the CFS to include all frequencies in the transform, not just integer multiples. We are taking the formula for CFS and taking the limit as goes to infinity. hus the signal in time no longer needs to be periodic (since the period is going to infinity), and in turn we need to use all frequencies in order to mimic the signal. he CF of a signal is thus continuous, and also not necessarily periodic. he CF transforms a continuous time signal to a continuous spectrum in frequency. We represent that frequency as.

CF: CF - : H ( ) h( t) h( t) e H ( ) e iwt iwt dt d he DF is symmetrical to the CFS. Recall the CFS maps a periodic, continuous signal in time to a discrete signal in frequency. he DF maps a discrete signal in time to a periodic, continuous signal in frequency. he connection to the CF is that the DF acts on a sample of a continuous signal. If we were to rewrite the i CFS in terms of exponentials (using Euler s Formula, e cos i sin ) the symmetery would be more apparent, I ll leave that to you, or you can look up the Strang reference Fourier ransforms on page 5. i DF: H e [ ] h t e DF - iw : [ ] 2 in in h t H e e d 2 All these transforms involve continuous signals in either time or frequency space. However as you know computers in general can only work with discrete information, and additionally we can only sample for a finite time. hus the best we are able to do numerically with transforms is a discrete approximation in frequency to a discrete signal in time. his brings us to the DF. he reference in the 2.39 schedule page titled FF reference material contains a more detailed explanation if you desire. he Discrete Fourier ransform (DF) Why DF if we have DF? Recall that DF provides a continuous frequency spectrum provided that we are given an infinitely long discrete-time signal. However, in real life we do not have the luxury of sampling a signal forever. herefore DF approximates the frequency spectrum of a DF using discrete samples. he DF maps a discrete, aperiodic and finite signal in time to a discrete, periodic signal in frequency. his is something computers can do. he DF of a length N signal in time will also be of length N in frequency. In otherwords, if we have a signal of length, we could only estimate the entire frequency spectrum with samples. Note that we have a limited series of frequency values in the DF, namely N. If a signal f[t] contains a frequency ω x which is not close to one of the frequency values available in the DF, the frequency spectrum will have to use a combination of the available frequencies to substitute, resulting in spectral leakage. hus when performing a DF in MALAB it can be extremely helpful to know what frequency you are looking for, and adjust input parameters accordingly. Modern implementations of the DF use an algorithm called the Fast Fourier ransform, or FF, and use clever windowing techniques to reduce the inherent problems of the DF approximations. Windowing refers to taking subsets of the signal and performing the FF multiple times you can see how this can affect your result based again on the number N of frequency values being the same as the number of time values.

DF: N 2 ik n N H[ k] hne, k,,..., N N n N 2 ik n N DF - : h n H k e, n,,..., N k Now let s look at a sampling example see next document, hand-written pages.