EE422G Homework #13 (12 points)

Similar documents
Fall 2011, EE123 Digital Signal Processing

Solutions. Number of Problems: 4. None. Use only the prepared sheets for your solutions. Additional paper is available from the supervisors.

Question1 Multiple choices (circle the most appropriate one):

Finite-length Discrete Transforms. Chapter 5, Sections

Practical Spectral Anaysis (continue) (from Boaz Porat s book) Frequency Measurement

Frequency Response of FIR Filters

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science. BACKGROUND EXAM September 30, 2004.

Frequency Domain Filtering

Ch3 Discrete Time Fourier Transform

Exam. Notes: A single A4 sheet of paper (double sided; hand-written or computer typed)

6.003 Homework #3 Solutions

ADVANCED DIGITAL SIGNAL PROCESSING

2D DSP Basics: 2D Systems

ELEG3503 Introduction to Digital Signal Processing

Signal Processing in Mechatronics. Lecture 3, Convolution, Fourier Series and Fourier Transform

Discrete-Time Signals and Systems. Discrete-Time Signals and Systems. Signal Symmetry. Elementary Discrete-Time Signals.

ELEG 4603/5173L Digital Signal Processing Ch. 1 Discrete-Time Signals and Systems

Linear time invariant systems

Block-by Block Convolution, FFT/IFFT, Digital Spectral Analysis

FIR Filters. Lecture #7 Chapter 5. BME 310 Biomedical Computing - J.Schesser

Lecture 3: Divide and Conquer: Fast Fourier Transform

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

Chapter 8. DFT : The Discrete Fourier Transform

EE / EEE SAMPLE STUDY MATERIAL. GATE, IES & PSUs Signal System. Electrical Engineering. Postal Correspondence Course

MATH 10550, EXAM 3 SOLUTIONS

x[0] x[1] x[2] Figure 2.1 Graphical representation of a discrete-time signal.

Digital signal processing: Lecture 5. z-transformation - I. Produced by Qiangfu Zhao (Since 1995), All rights reserved

Olli Simula T / Chapter 1 3. Olli Simula T / Chapter 1 5

CEMTool Tutorial. Fourier Analysis

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING

Written exam Digital Signal Processing for BMT (8E070). Tuesday November 1, 2011, 09:00 12:00.

Analog and Digital Signals. Introduction to Digital Signal Processing. Discrete-time Sinusoids. Analog and Digital Signals

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

Signals & Systems Chapter3

MAS160: Signals, Systems & Information for Media Technology. Problem Set 5. DUE: November 3, (a) Plot of u[n] (b) Plot of x[n]=(0.

Filter banks. Separately, the lowpass and highpass filters are not invertible. removes the highest frequency 1/ 2and

EE123 Digital Signal Processing

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

The Discrete Fourier Transform

Chapter 2 Systems and Signals

FIR Filter Design: Part II

Computing the output response of LTI Systems.

Chapter 7: The z-transform. Chih-Wei Liu

Topic 9: Sampling Distributions of Estimators

6.003 Homework #12 Solutions

Lecture 3. Digital Signal Processing. Chapter 3. z-transforms. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev. 2016

Recursive Algorithms. Recurrences. Recursive Algorithms Analysis

FFTs in Graphics and Vision. The Fast Fourier Transform

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

A. Basics of Discrete Fourier Transform

1the 1it is said to be overdamped. When 1, the roots of

6.003 Homework #12 Solutions

Exponential Moving Average Pieter P

CHAPTER I: Vector Spaces

The Z-Transform. (t-t 0 ) Figure 1: Simplified graph of an impulse function. For an impulse, it can be shown that (1)

Injections, Surjections, and the Pigeonhole Principle

Revision Topic 1: Number and algebra

Long-term Memory Review CRT PRACTICE 8 th Grade: MONDAY REVIEW STATE STANDARDS AND 2.8.2

Vibratory Motion. Prof. Zheng-yi Feng NCHU SWC. National CHung Hsing University, Department of Soil and Water Conservation

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

Polynomial Multiplication and Fast Fourier Transform

1 Generating functions for balls in boxes

Bernoulli, Ramanujan, Toeplitz e le matrici triangolari

Solution of EECS 315 Final Examination F09

UNIT-I. 2. A real valued sequence x(n) is anti symmetric if a) X(n)=x(-n) b) X(n)=-x(-n) c) A) and b) d) None Ans: b)

4.3 Growth Rates of Solutions to Recurrences

Test One (Answer Key)

Discrete-Time Signals and Systems. Signals and Systems. Digital Signals. Discrete-Time Signals. Operations on Sequences: Basic Operations

Time-Domain Representations of LTI Systems

DIGITAL SIGNAL PROCESSING LECTURE 3

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

Chapter 7 z-transform

Data 2: Sequences and Patterns Long-Term Memory Review Grade 8 Review 1

MAXIMALLY FLAT FIR FILTERS

Lecture 2 Linear and Time Invariant Systems

SEQUENCE AND SERIES NCERT

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

Spring 2014, EE123 Digital Signal Processing

ECEN 644 HOMEWORK #5 SOLUTION SET

Math 312 Lecture Notes One Dimensional Maps

ECE4270 Fundamentals of DSP. Lecture 2 Discrete-Time Signals and Systems & Difference Equations. Overview of Lecture 2. More Discrete-Time Systems

CS / MCS 401 Homework 3 grader solutions

6.3 Testing Series With Positive Terms

Chapter 4 : Laplace Transform

Lecture 9: Hierarchy Theorems

NUMERICAL METHODS FOR SOLVING EQUATIONS

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

EE Control Systems

14.1 Understanding Rational Exponents and Radicals

f(x) dx as we do. 2x dx x also diverges. Solution: We compute 2x dx lim

Solutions - Homework # 1

Chapter 4. Fourier Series

Chapter 9 Computation of the Discrete. Fourier Transform

Chapter 6 Overview: Sequences and Numerical Series. For the purposes of AP, this topic is broken into four basic subtopics:

INTEGRATION BY PARTS (TABLE METHOD)

Digital Signal Processing

LESSON 2: SIMPLIFYING RADICALS

TMA4205 Numerical Linear Algebra. The Poisson problem in R 2 : diagonalization methods

COMM 602: Digital Signal Processing

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

Transcription:

EE422G Homework #1 (12 poits) 1. (5 poits) I this problem, you are asked to explore a importat applicatio of FFT: efficiet computatio of covolutio. The impulse respose of a system is give by h(t) (.9),1,2,,1 ad the iput to the system is give by x(t) si(¼π,1,2,,1 You are asked to use the fft ad ifft commads i Matlab to compute ad plot the output y(t) h(t) * x(t). >> :1; >> h.9.^; >> x *si(1/4*pi*; >> H fft(h,6); % fft pads zero >> X fft(x,6); >> Y X.*H; >> y ifft(y); >> plot(:62,y,'r',:1,x,'b',:1,h,'g') 6 y x h 4 2-2 -4 1 2 4 5 6 7 I additio, please aswer the followig questios: a. hat is the miimum value of N i the N-poit DFT (FFT) eeded to compute this liear covolutio? N must be large eough so that it exceeds the legth of the output sequece, which is the sum of the legths of the iput ad impulse sequece mius oe, or 6.

b. If the impulse respose has N o-zero samples ad the iput has M o-zero samples, how may arithmetic operatios (additios ad multiplicatios) are eeded to compute the liear operatio from its defiitio, i.e. y( T ) N 1 m h( mt ) x( T mt ) for,1,..., M 1? Each sample i the output sequece requires at most 2 max(n,m) arithmetic operatios the max operator is eeded as less operatios are eeded i the begiig ad at the ed samples as the amout of overlap betwee the iput ad the impulse respose is smaller. Sice there are N+M-1 o-zero output samples, the total umber of operatio is roughly 2 max(n,m) (N+M-1). I the case whe NM ad they are sigificatly bigger tha 1, the above expressio ca be simplified as roughly equal to 4N 2. c. Repeat b) but usig the FFT method. If FFT is used, both the iput sequece ad the impulse respose eed to first zero-padded to N+M-1. This process does ot use ay arithmetic operatios (except perhaps oe to compute what N+M-1 is). The the two forward FFT costs about 2(N+M-1)log(N+M-1) operatios. The frequecy samples are the multiplied with each other ad this takes N+M-1 operatios. The fial iverse FFT takes (N+M-1)log(N+M-1), makig the total cout of operatios (N+M- 1)[log(N+M-1)+1]. For large NM, we have roughly 6N logn. As oe ca see this is sigificatly faster tha the straightforward liear covolutio. 2. (4 poits) Durig lecture, we discussed the decimatio-i-time method of implemetig FFT i which we partitio the sequece ito eve ad odd time samples. There is a alterative approach called decimatio-i-frequecy which we are goig to explore i this problem. Recall that a -poit DFT is give by j2π where N exp. N a. Show that It is easy to see that X ( k) 7 k 4k [ x( + + ] ( + 4) k [ x( + + ] 7 x( X ( k) x( T ),1,...,7 k [ x( + ( 1) ] X ( k) + 4k k ( 1) (2), thus the right had side of (2) becomes b. For eve k, show that equatio (2) is equivalet to the 4-poit DFT of the sequece y ( x( + + 2k For eve k, we have 4 Usig (2) ad the give substitutio, we have (1)

X (2k) y( 4 2k [ x( + ( 1) + ] Y ( k) c. For odd k, show that equatio (2) is equivalet to the 4-poit DFT of the sequece y( [ x( + + ] There is a typo i this questio so everyoe is gettig full credit for this part: ( x( + 2k The substitutio should be y [ ] (2k + 1) X (2k + 1) [ x( + ] 2k [ x( + ] y( 4 Y ( k) d. Draw the butterfly etwork of the -poit DFT i terms of the preprocessig stage followed by two 4-poit DFTs.. (4 poits) Filter desig a. Respose of the aalog filter i. ii. iii. b. For the low pass filter i part a), desig a digital filter H(z) with Ts1 msec usig the followig techiques:

i) Impulse Ivariat Desig ii) Step Ivariat Desig: iii) Biliear Trasformatio: c) Matlab Code to obtai the plots:» T.1;» w1/t*[1 zeros(1,1];» w1/t*[1 zeros(1,1)];» w_impulse1/t*[1 zeros(1,1)];» w_stepoes(1,11);» t[:t:1];» w_expoetialexp(-4*t);» um_impulse5*t;» de_impulse[1 -exp(-.4)];» um_step5/4*(1-exp(-.4))*[ 1];

» de_step[1 -exp(-.4)];» um_biliear5/24*[1 1];» de_biliear[1-196/24];» y_impulse_impulsefilter(um_impulse,de_impulse,w_impulse);» y_impulse_stepfilter(um_impulse,de_impulse,w_step);» y_impulse_expoetialfilter(um_impulse,de_impulse,w_expoetial);» y_step_impulsefilter(um_step,de_step,w_impulse);» y_step_stepfilter(um_step,de_step,w_step);» y_step_expoetialfilter(um_step,de_step,w_expoetial);» y_biliear_impulsefilter(um_biliear,de_biliear,w_impulse);» y_biliear_stepfilter(um_biliear,de_biliear,w_step);» y_biliear_expoetialfilter(um_biliear,de_biliear,w_expoetial);» y_aalog_impulse5*exp(-4*t);» y_aalog_step5/4*(1-exp(-4*t));» y_aalog_expoetial5*t.*(exp(-4*t));» plot(t,y_impulse_impulse,'o',t,y_step_impulse,'*',t, y_biliear_impulse,'x',t,y_aalog_impulse)» grid,title('ee422 - Respose of digital ad aalog filters to impulse')» plot(t,y_impulse_step,'o',t,y_step_step,'*',t,y_biliear_step,'x', t,y_aalog_step)» grid,title('ee422 - Respose of digital ad aalog filters to step')» plot(t,y_impulse_expoetial,'o',t,y_step_expoetial,'*', t,y_biliear_expoetial,'x',t,y_aalog_expoetial)» grid,title('ee422 - Respose of digital ad aalog filters to exp(- 4t)')

As expected, the impulse ivariat desig respose agrees exactly with the aalog filter whe the iput is a impulse ad similarly, the step ivariat desig respose agrees exactly with the aalog filter whe the iput is a step. The biliear trasformatio does well whe the aalog respose is relatively smooth.

1 4. ( poits) Desig a digital filter for the aalog prototype H ( s) usig ( s + 5)( s + 1) both the impulse-ivariat ad the biliear methods. The sample period of the digital filter is.1 secod. Plot the amplitude ad phase resposes of the aalog filter as well as the two digital filters ad commet o their differeces. >> um 1; >> de cov([1 5],[1 1]); >> freq 1/.1; >> [bz,az] impivar(um,de,freq); >> [bz1,az1] biliear(um,de,freq); % Biliear mappig >> [ha,w] freqs(um,de; >> hd freqz(bz,az,w/(2*pi),freq); >> hd1 freqz(bz1,az1,w/(2*pi),freq); >> subplot(1,2,1); plot(w,abs(ha),'b',w,abs(hd),'r',w,abs(hd1),'g'); >> subplot(1,2,2); plot(w,phase(ha),'b',w,phase(hd),'r',w,phase(hd1),'g'); >> subplot(1,2,1); title('magitude'); xlabel('freq(rad/s)'); >> subplot(1,2,2); title('phase'); xlabel('freq(rad/s)');.2 Magitude Phase Biliear clearly has o aliasig (almost zero at the half samplig freq)..1.16.14.12.1..6.4.2 aliasig -1-2 - -4-5 -6-7 - -9 5 1 Freq( rad/s) -1 5 1 Freq(rad/s)