UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

Similar documents
UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. Forslag til fasit, versjon-01: Problem 1 Signals and systems.

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

Your solutions for time-domain waveforms should all be expressed as real-valued functions.

Review of Discrete-Time System

Stability Condition in Terms of the Pole Locations

Review of Fundamentals of Digital Signal Processing

Discrete Time Systems

Digital Signal Processing. Midterm 1 Solution

EE 521: Instrumentation and Measurements

Review of Fundamentals of Digital Signal Processing

Z-TRANSFORMS. Solution: Using the definition (5.1.2), we find: for case (b). y(n)= h(n) x(n) Y(z)= H(z)X(z) (convolution) (5.1.

Lecture 7 Discrete Systems

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

Multidimensional digital signal processing

EEL3135: Homework #4

Digital Signal Processing:

Lecture 14: Windowing

Very useful for designing and analyzing signal processing systems

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

Discrete Time Systems

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

EECE 301 Signals & Systems Prof. Mark Fowler

Transform Analysis of Linear Time-Invariant Systems

Chap 2. Discrete-Time Signals and Systems

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science. Fall Solutions for Problem Set 2

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

ECE538 Final Exam Fall 2017 Digital Signal Processing I 14 December Cover Sheet

Discrete-Time Signals and Systems. Frequency Domain Analysis of LTI Systems. The Frequency Response Function. The Frequency Response Function

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

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

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

ELEN 4810 Midterm Exam

Lecture 13: Discrete Time Fourier Transform (DTFT)

Lecture 10. Digital Signal Processing. Chapter 7. Discrete Fourier transform DFT. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev.

LAB 6: FIR Filter Design Summer 2011

Discrete-Time Signals and Systems. The z-transform and Its Application. The Direct z-transform. Region of Convergence. Reference: Sections

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

Lecture 3 - Design of Digital Filters

E : Lecture 1 Introduction

Final Exam of ECE301, Section 1 (Prof. Chih-Chun Wang) 1 3pm, Friday, December 13, 2016, EE 129.

Digital Signal Processing Lecture 3 - Discrete-Time Systems

Discrete Time Fourier Transform

x[n] = x a (nt ) x a (t)e jωt dt while the discrete time signal x[n] has the discrete-time Fourier transform x[n]e jωn

ESE 531: Digital Signal Processing

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 2 Solutions

SIGNALS AND SYSTEMS. Unit IV. Analysis of DT signals

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF INFORMATION TECHNOLOGY. Academic Year

ECE503: Digital Signal Processing Lecture 4

Discrete-Time Fourier Transform (DTFT)

Digital Control & Digital Filters. Lectures 1 & 2

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

Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

Signals & Systems Handout #4

Digital Signal Processing. Lecture Notes and Exam Questions DRAFT

ECE 350 Signals and Systems Spring 2011 Final Exam - Solutions. Three 8 ½ x 11 sheets of notes, and a calculator are allowed during the exam.

Question Paper Code : AEC11T02

Question Bank. UNIT 1 Part-A

ECE503: Digital Signal Processing Lecture 5

Solutions: Homework Set # 5

EEE4001F EXAM DIGITAL SIGNAL PROCESSING. University of Cape Town Department of Electrical Engineering PART A. June hours.

EC Signals and Systems

ESE 531: Digital Signal Processing

Use: Analysis of systems, simple convolution, shorthand for e jw, stability. Motivation easier to write. Or X(z) = Z {x(n)}

Filter Analysis and Design

ECGR4124 Digital Signal Processing Final Spring 2009

ECE 301. Division 2, Fall 2006 Instructor: Mimi Boutin Midterm Examination 3

EE-210. Signals and Systems Homework 7 Solutions

TTT4120 Digital Signal Processing Suggested Solutions for Problem Set 2

University of Illinois at Urbana-Champaign ECE 310: Digital Signal Processing

z-transform Chapter 6

Discrete Time Fourier Transform (DTFT)

Basic Design Approaches

Final Exam January 31, Solutions

Solutions. Number of Problems: 10

Z-Transform. The Z-transform is the Discrete-Time counterpart of the Laplace Transform. Laplace : G(s) = g(t)e st dt. Z : G(z) =

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

Solutions. Number of Problems: 10

IT DIGITAL SIGNAL PROCESSING (2013 regulation) UNIT-1 SIGNALS AND SYSTEMS PART-A

ECGR4124 Digital Signal Processing Midterm Spring 2010

ECGR4124 Digital Signal Processing Exam 2 Spring 2017

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

Detailed Solutions to Exercises

! z-transform. " Tie up loose ends. " Regions of convergence properties. ! Inverse z-transform. " Inspection. " Partial fraction

Discrete-time Fourier transform (DTFT) representation of DT aperiodic signals Section The (DT) Fourier transform (or spectrum) of x[n] is

Digital Signal Processing I Final Exam Fall 2008 ECE Dec Cover Sheet

Computer Engineering 4TL4: Digital Signal Processing


Homework 8 Solutions

NAME: ht () 1 2π. Hj0 ( ) dω Find the value of BW for the system having the following impulse response.

ECE 301 Division 1, Fall 2008 Instructor: Mimi Boutin Final Examination Instructions:

# FIR. [ ] = b k. # [ ]x[ n " k] [ ] = h k. x[ n] = Ae j" e j# ˆ n Complex exponential input. [ ]Ae j" e j ˆ. ˆ )Ae j# e j ˆ. y n. y n.

Multirate Digital Signal Processing

Discrete-time signals and systems

EE 224 Signals and Systems I Review 1/10

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

-Digital Signal Processing- FIR Filter Design. Lecture May-16

6.003: Signals and Systems

Transcription:

UNIVERSITY OF OSLO Faculty of mathematics and natural sciences Examination in INF3470/4470 Digital signal processing Day of examination: December 9th, 011 Examination hours: 14.30 18.30 This problem set consists of 13 pages. Appendices: None Permitted aids: None Please make sure that your copy of the problem set is complete before you attempt to answer anything. Answer: Suggested solutions, /1-011: Problem 1 z-transformation a) Find the z-transform X(z) of the expression x[n] α n u[n] α n u[n 5]. 1 p. b) Find the causal sequence h[n] with z-transform H(z) z+3 z. 1 p. c) A signal x[n] has the z-transform X(z): Show that multiplying x[n] with p. n corresponds to multiplying X(z) with z d : dz n x[n] How does this affect the ROC? Z z d dz X(z) (Continued on page.)

Examination in INF3470/4470, December 9th, 011 Page Answer: a) We compute X(z) by taking the z-transform of x[n]: X(z) n n x[n] z n 4 α n z n n0 α n (u[n] u[n 5]) z n 1 + α z 1 + α z + α 3 z 3 + α 4 z 4 1 α5 z 5 1 α z 1. This sequence is finite and right-sided, hence the ROC is the entire z- plane except in z 0. b) Let s start by expanding H(z) slightly: H(z) z + 3 z 1 + 3 z 1 1 z 1 3 z 1 + 1 1 z 1 1 z 1 Both the causal sequence h[n] α n u[n] and the anti-causal sequence h[n] α n 1 u[ n 1] has the z-transform H(z). Since we re 1 α z 1 speaking of the former case here, finding the inverse transform is simply a matter of recognizing the terms and remembering that a multiplication by z 1 in the z-domain corresponds to a n 1 shift in the time domain: Alternative: We find the difference equation: h[n] n u[n] + 3 n 1 u[n 1] H(z) z + 3 z 1 + 3 z 1 Y (z) 1 z 1 X(z) Y (z)(1 z 1 ) X(z)(1 + 3 z 1 ) IZT y[n] y[n 1] + x[n] + 3 x[n 1] (Continued on page 3.)

Examination in INF3470/4470, December 9th, 011 Page 3 Then apply an impulse x[n] δ[n]: y[0] δ[0] 1 y[1] y[0] + 3 δ[1 1] 5 y[] y[1] 10 y[] y[] 0 y[] y[] 40. From this we may infer the symbolic expression of the impulse response: h[n] 5 n 1 u[n 1] + δ[n] n u[n] + 3 n 1 u[n 1] c) One may start in either end of this proof, any method is equally valid. dx(z) dz z dx(z) dz d dz n n n n x[n] z n d x[n] z n dz ( n) x[n] z n 1 n x[n] z n Q.E.D. z What happens with the ROC? A proof was not requested, but the logic is quite simple: If we let X(z) B(z), then it follows by the quotient rule A(z) that z d X(z) z dz X (z) z A (z)b(z) A(z)B (z). That is, the poles A (z) are duplicated, and the ROC is unaffected (a sufficient answer). (Continued on page 4.)

Examination in INF3470/4470, December 9th, 011 Page 4 Problem Sampling a) Explain briefly the meaning of the following terms: p. Sampling frequency and Nyquist frequency Quantization and quantization error Uniform and non-uniform sampling Frequency aliasing b) A real signal x(t) with the magnitude response X(f) (as shown to the right) is sampled and filtered in four different ways: Sketch the magnitude responses X 1 (f), X (f), X 3 (f) and X 4 (f) in the frequency range 10 Hz to 10 Hz. Assume that the amplitude of the signal is unaffected by the upsampling process. p. Answer: a) Sampling frequency is the rate at which we sample an underlying signal. To avoid frequency aliasing, the (Nyquist-Shannon) sampling theorem states that the sample rate must be twice the highest frequency in the signal. Or, in case the signal is bandlimited, the sampling rate must be twice the bandwidth of that signal. This sampling rate is called Nyquist rate, and the Nyquist frequency is (usually) half of that. You ll get credit for either answer, as the distinction has not been made explicit. Quantization is the procedure of constraining the signal value at the sample point to a discret value. By doing so the sample values are not the true ones, only an approximation, and the error involved here is referred to as quantization error. Uniform sampling is when the sample rate is static, and nonuniform sampling is when the sampling rate is dynamic. (Continued on page 5.)

Examination in INF3470/4470, December 9th, 011 Page 5 Frequency aliasing, or just alias, is when frequencies appear in the sampled signals spectrum that was not in the original signals spectrum. This is an effect of undersampling. b) (1) The signal is sampled at twice the highest frequency, and no aliasing occurs. Since the signal is real, the spectrum will be symmetric. () The signal is sampled as in (1), but is multiplied with a complex exponential with the phase Θ 15πt π7.5t, and hence frequency 7.5 Hz. Hence, this corresponds to shifting the frequency spectra by 7.5 Hz. (3) The signal is sampled at the highest frequency, but at twice the bandwidth. Aliasing occurs, but no harm is done since the frequency band is simply duplicated onto lower frequencies where there was no signal before. By applying a lowpass filter, only the low frequency duplicate of the band with remain. (4) The signal is undersampled as in (3), and then upsampled by means of intersample zero-padding. This result is a spectrum compressed by a factor equal to the upsampling factor (i.e. here). (Continued on page 6.)

Examination in INF3470/4470, December 9th, 011 Page 6 Problem 3 System analysis A filter is described as: where indicates sum and indicates multiplication. a) Find the system function H(z). 1 p. In the following two exercises, assume that H(z) 1+z 1 1 z 1 +0.5z : b) Plot poles and zeros, and determine whether this filter is stable and/or causal. p. c) Find the expressions for the filter magnitude response H(Ω) and phase response Θ H (Ω). The final expressions should not contain complex numbers. Avoid spending time trying to simplify the terms. p. Answer: a) The easiest way to find H(z) is to first decompose this system into its FIR and IIR part: (Continued on page 7.)

Examination in INF3470/4470, December 9th, 011 Page 7 Then we set up the difference equation for each of the two systems: Take the z-transform: w[n] a 1 w[n 1] + a w[n ] + x[n] y[n] w[n] + b 1 w[n 1] W (z) a 1 W (z) z 1 + a W (z) z + X(z) Y (z) W (z) + b 1 W (z) z 1 Then rearrange the expressions to arrive at the FIR and IIR transferfunctions: H IIR (z) W (z) X(z) 1 1 a 1 z 1 a z H FIR (z) Y (z) W (z) 1 + b 1 z 1 Since the two systems are put in series, H(z) is found by simply multiplying H IIR (z) and H FIR (z) together: H(z) H IIR (z) H FIR (z) 1 + b 1 z 1 1 a 1 z 1 a z b) To find the zeros and poles we get rid of the negative exponentials of z and factorize H(z): H(z) 1 + z 1 z 1 z 1 + 0.5z z z + z z z + 0.5 z(z + 1) (z p 1 )(z p ) where {p 1, p } 0.5 ± j0.5. This is easily found by from the equation of second degree polynomials. The zeros are recognized directly: {z 1, z } {0, 1}. The poles and zeros are plotted to the right. Whether H(z) is stable or causal is a trick question, as one must be known in order to know the other. If the system is causal, all the poles must lie within the unit circle to ensure stability, and if it is anti-causal all the poles must lie on the outside. Hence, assuming causality, the system is stable, otherwise not. (Continued on page 8.)

Examination in INF3470/4470, December 9th, 011 Page 8 c) The first step is to evaluate the transferfunction along the unit circle, i.e. setting z e jω : z + z H(Ω) z z + 0.5 e jω + e jω e jω e jω + 0.5 ze jω e j 3Ω e j 3Ω e j Ω + e j Ω e j Ω e j Ω + 0.5e j 3Ω cos Ω j sin Ω + 0.5(cos 3Ω + j sin 3Ω) Magnitude response: Using the expression above: H(Ω) cos Ω j sin Ω + 0.5(cos 3Ω + j sin 3Ω) j sin Ω cos Ω + 0.5(cos 3Ω + j sin 3Ω ) cos Ω (0.5 cos 3Ω ) + ( sin Ω + 0.5 sin 3Ω ) Alternative (just as valid): Phase response: H(Ω) H(Ω) H (Ω) e jω + e jω e jω + e jω e jω e jω + 0.5 e jω e jω + 0.5 + cos Ω.5 + 3 cos Ω + cosω [ ] cos Ω Θ H (Ω) j sin Ω + 0.5(cos 3Ω + j sin 3Ω) [ cos Ω ] [j sin Ω + 0.5(cos 3Ω + j sin 3Ω ] ) arctan sin Ω + 0.5 sin 3Ω 0.5 cos 3Ω This expression is not the easiest to evaluate, so you ll get credit if you ve shown the concept of arriving at the magnitude and phase response. (Continued on page 9.)

Examination in INF3470/4470, December 9th, 011 Page 9 Problem 4 FIR filter design The magnitude response of an ideal lowpass filter is given as: a) Find the impulse response h ideal [n] when the phase is 0, and sketch it. 1 p. b) This filter can not be realised. Why? What must be done with the impulse response to make the filter realisable, and how does this affect the frequency response? 1 p. c) Two common ways to design FIR filters is by means of the frequency sampling method and the window method. Explain the concept of these two methods, and list pros and cons. p. Answer: a) Finding h ideal [n] is simply a matter of realising that we need to use the inverse DTFT. Let us say that H ideal (Ω) A when Ω c < Ω < Ω c : h ideal [n] 1 π 1 π Ω c Ω c A 1 πjn A 1 πjn H ideal (Ω) e jωn dω A e jωn dω [e jωn ] Ωc Ω c (e jωcn e jωcn ) A 1 πjn j sin Ω cn A 1 πn sin Ω cn A Ω c π sin Ω c n Ω c n A Ω c π sinc Ω cn h[n] H Ω c π 0 0 15 10 5 0 5 10 15 0 n (Continued on page 10.)

Examination in INF3470/4470, December 9th, 011 Page 10 b) This impulse response (the sinc) has an infinite extent, and is therefore neither causal nor stable (it is not absolutely summable). What we can do, however, is to symmetrically truncate the impulse response at some point and see if the filter is still good enough. This operation corresponds to multiplying the impulserespons with a window function, or equvalently, convolving the frequency response with the frequency response of the window. This results in Ringing in the passband and stopband, and an overshoot/undershoot near the transition boundary (Gibbs effect). Transition band between passband and stopband, i.e., the transition edge becomes less steep. c) The frequency samping method: (1) Start with the frequency response (the DTFT) of the ideal filter. () Sample this response at regular intervals and treat this as the DFT H(f). (3) Take the inverse DFT to find the filter coefficients/impulse response h[n]. By taking the DFT of h[n] one will see that the realized filter has a frequency response that passes through the sample points, but this method provides little means for controlling the response in between them. Introducing samples in the transition band helps. The window method: (1) Start with the frequency response (the DTFT) of the ideal filter. () Take the inverse DTFT to get an impulse response h[n] with infinite extent. (3) Truncate the impulse response by multiplying it with a window. When a rectangular windows is applied, the transition band is at its steepest, but ringing/ripple will occur in both pass- and stopband. A window that approaches 0 at the edges more gently will minimize ripple/ringing at the expense of a wider transition band. Finding the window that lead to the right compromise is what this method is all about. (Continued on page 11.)

Examination in INF3470/4470, December 9th, 011 Page 11 Problem 5 Filters Given the system function: H(z) (1 1.5e j0.8π z 1 )(1 1.5e j0.8π z 1 ) a) Find poles and zeros and plot them. 1 p. b) Find the minimum-phase filter H MF (z) that has the same frequency response: H MF (Ω) H(Ω) 1 p. c) Find the allpass filter H AP (z) that transforms between them, i.e. H MF (Ω) H AP (z) H(Ω), and determine whether this filter is stable. 1 p. Answer: a) Recognizing the poles and zeros is easy once we rewrite the term to get rid of the negative exponentials of z: H(z) ( 1 1.5e j0.8π z 1)( 1 1.5e j0.8π z 1) 1 z ( z 1.5e j0.8π )( z 1.5e j0.8π) (Continued on page 1.)

Examination in INF3470/4470, December 9th, 011 Page 1 b) The filter descrived in (a) is a maximum phase filter, since it is stable (FIR) and the zeros are outside the unit circle. By replacing the factors (z α) with either ( 1 α) or (1 αz) we will get a minimum phase z filter instead: H MF (z) 1 z ( 1 5 4 ej0.8π z )( 1 5 4 e j0.8π z ) 1 5 5 ( z 4 ej0.8π 4 e j0.8π 4 5 e j0.8π z 5 4 1 z ( z 4 5 ej0.8π )( z 4 5 e j0.8π ) )( ) 4 5 ej0.8π z The text said to find the minimum phase filter with the same frequency response, H MF (Ω) H(Ω). It should have said magnitude response, H MF (Ω) H(Ω). c) There s no magic here, really: H AP (z) H MF(z) H(z) H MF(z) H(z) 5 1 4 1 5 4 ( z z 4 ej0.8π)( z 4e j0.8π) 5 5 (z 5 z 4 ej0.8π )(z 5 4 e j0.8π ) ( z 4 ej0.8π)( z 4e j0.8π) 5 5 (z 5 4 ej0.8π )(z 5 4 e j0.8π ) If 1/H(z) is causal, the system will be unstable due to having poles on the outside of the unit circle. (Continued on page 13.)

Examination in INF3470/4470, December 9th, 011 Page 13 Formulas Basic relations: sin(α ± β) sin α cos β ± cos α sin β cos(α ± β) cos α cos β sin α sin β sin α sin α cos α cos α cos α sin α sin α + sin β sin α + β sin α sin β sin α + β cos α + cos β cos α + β cos α cos β sin α + β cos α + sin α 1 cos α 1 (ejα + e jα ) cos α β sin α β cos α β sin α β Discrete convolution: y[n] x[n] h[n] sin α 1 j (ejα e jα ) { N for a 1 a n otherwise N 1 n0 1 a N 1 a ax + bx + c 0 x ± b ± b 4ac a k x[k]h[n k] k Discrete-time Fourier transformation (DTFT): Analysis: X(Ω) Synthesis: x[n] 1 π Discrete Fourier transformation (DFT): Analysis: X[k] N 1 Synthesis: x[n] 1 N n0 N 1 n π π x[n k]h[k] h[n] x[n] x(n)e jωn X(Ω)e jωn dω x[n]e jπkn/n, 0 k N 1 k0 X[k]e jπkn/n, 0 k N 1 z-transformation: Analysis: X(z) n x[n]z n