EE422G Solution to Homework #8

Similar documents
LESSON 21: METHODS OF SYSTEM ANALYSIS

EES42042 Fundamental of Control Systems Bode Plots

Homework Assignment 13

CDS 101/110a: Lecture 8-1 Frequency Domain Design

EE Experiment 8 Bode Plots of Frequency Response

CDS 101/110a: Lecture 8-1 Frequency Domain Design. Frequency Domain Performance Specifications

CDS 101/110: Lecture 9.1 Frequency DomainLoop Shaping

Homework Assignment 13

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

Lecture 18 Stability of Feedback Control Systems

Lecture 7 Frequency Modulation

JUNE 2014 Solved Question Paper

PYKC 13 Feb 2017 EA2.3 Electronics 2 Lecture 8-1

JNTUWORLD. 6 The unity feedback system whose open loop transfer function is given by G(s)=K/s(s 2 +6s+10) Determine: (i) Angles of asymptotes *****

Discrete-time Signals & Systems

EE 435. Lecture 16. Compensation Systematic Two-Stage Op Amp Design

Bode Plots. Hamid Roozbahani

(1) Identify individual entries in a Control Loop Diagram. (2) Sketch Bode Plots by hand (when we could have used a computer

ECE317 Homework 7. where

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Introduction to Signals and Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

George Mason University Signals and Systems I Spring 2016

ANNA UNIVERSITY :: CHENNAI MODEL QUESTION PAPER(V-SEMESTER) B.E. ELECTRONICS AND COMMUNICATION ENGINEERING EC334 - CONTROL SYSTEMS

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

CDS 101/110: Lecture 8.2 PID Control

PROBLEM SET 5. Reminder: Quiz 1will be on March 6, during the regular class hour. Details to follow. z = e jω h[n] H(e jω ) H(z) DTFT.

EE233 Autumn 2016 Electrical Engineering University of Washington. EE233 HW7 Solution. Nov. 16 th. Due Date: Nov. 23 rd

Frequency Response Analysis and Design Tutorial

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

Discrete-time Signals & Systems

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

ME 375. HW 7 Solutions. Original Homework Assigned 10/12, Due 10/19.

Multirate Digital Signal Processing

Bode plot, named after Hendrik Wade Bode, is usually a combination of a Bode magnitude plot and Bode phase plot:

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

DEGREE: Biomedical Engineering YEAR: TERM: 1

Problems from the 3 rd edition

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 4

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #2

V DD M 3 M 4 M 5 C C V OUT V 1 2 C L M 6 M 7 V XX. Homework Assignment EE 435 Homework 6 Due Tuesday March 12 Spring 2019

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

Chapter 10 Feedback ECE 3120 Microelectronics II Dr. Suketu Naik

Outline. Digital Control. Lecture 3

Pole, zero and Bode plot

DESIGN AND ANALYSIS OF FEEDBACK CONTROLLERS FOR A DC BUCK-BOOST CONVERTER

Figure 1: Block diagram of Digital signal processing

Välkomna till TSRT15 Reglerteknik Föreläsning 8

ELEC3104: Digital Signal Processing Session 1, 2013 LABORATORY 3: IMPULSE RESPONSE, FREQUENCY RESPONSE AND POLES/ZEROS OF SYSTEMS

Lecture 3, Multirate Signal Processing

Readings: FC: p : lead compensation. 9/9/2011 Classical Control 1

Cleveland State University MCE441: Intr. Linear Control Systems. Lecture 12: Frequency Response Concepts Bode Diagrams. Prof.

EEL2216 Control Theory CT2: Frequency Response Analysis

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 4

Design of Bandpass Delta-Sigma Modulators: Avoiding Common Mistakes

and using the step routine on the closed loop system shows the step response to be less than the maximum allowed 20%.

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

Exercise 8: Frequency Response

Positive Feedback and Oscillators

Dr Ian R. Manchester

EE 422G - Signals and Systems Laboratory

EC CONTROL SYSTEMS ENGINEERING

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Case study for voice amplification in a highly absorptive conference room using negative absorption tuning by the YAMAHA Active Field Control system

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Automated Digital Controller Design for Switching Converters

Sampling and Reconstruction of Analog Signals

EE247 Lecture 26. EE247 Lecture 26

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Lecture 7:Examples using compensators

Experiment 1: Amplifier Characterization Spring 2019

1 Chapter 8: Root Locus Techniques. Chapter 8. Root Locus Techniques. 2000, John Wiley & Sons, Inc. Nise/Control Systems Engineering, 3/e

BSNL TTA Question Paper Control Systems Specialization 2007

Engineering Discovery

1.What is frequency response? A frequency responses the steady state response of a system when the input to the system is a sinusoidal signal.

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

Signal Processing Laboratories

CHAPTER 9 FEEDBACK. NTUEE Electronics L.H. Lu 9-1

Application Note. STAN Tool. Selecting the Node. Understanding and overcoming pole-zero quasi-cancellations

Lab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing

Lecture 3 Complex Exponential Signals


( ) = V s ( jω ) = 2 kω, a = 4, R s. = 500 nf Draw a Bode diagram of the magnitude and phase of the frequency. Let R p. response H jω. V in.

Motomatic via Bode by Frank Owen, PhD, PE Mechanical Engineering Department California Polytechnic State University San Luis Obispo

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Winter Semester, Linear control systems design Part 1

Spring 2018 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #1 Sinusoids, Transforms and Transfer Functions

ME451: Control Systems. Course roadmap

MUSC 316 Sound & Digital Audio Basics Worksheet

Analog Filters D R. T A R E K T U T U N J I P H I L A D E L P H I A U N I V E R S I T Y, J O R D A N

Lab 4 Digital Scope and Spectrum Analyzer

3D Distortion Measurement (DIS)

Laboratory 7: Active Filters

Lecture 8 ECEN 4517/5517

Multipath Miller Compensation for Switched-Capacitor Systems

ESE531 Spring University of Pennsylvania Department of Electrical and System Engineering Digital Signal Processing

CS101 Lecture 18: Audio Encoding. What You ll Learn Today

The above figure represents a two stage circuit. Recall, the transfer function relates. Vout

Transcription:

EE4G Solution to Homework #8. MATLAB >> H = tf([ 4],[ 6 6]); >> H = tf([ ],[ - 5 5 4]); >> step(h).7 Step Response.6.5 Amplitude.4... 4 5 6 >> step(h) Time (sec).5 Step Response.5 Amplitude.5.5.5..5..5..5.4.45 >> pzmap(h) Time (sec)

.5 Pole-Zero Map.5 Imaginary Axis -.5 - -.5 -.5 - -.5 - -.5 - -.5 Real Axis All LHP poles H is BIBO stable >> pzmap(h) 5 Pole-Zero Map 4 Imaginary Axis - - - -4-5 - - 4 5 6 Real Axis Two RHP poles H is unstable >> bode(h) Bode Diagram Magnitude (db) - - - -4 Phase (deg) -45-9 - - Frequency (rad/sec) Even you can use MATLAB to show the Bode plot of H, it does not exist because H has two RHP poles. Thus, we should not blindly trust the results of MATLAB. >> t=.:.:;

>> x = log(*t).*cos(5*t); >> plot(t,x,t,lsim(h,x,t)) Warning: Simulation will start at the nonzero initial time T(). > In lti.lsim at 9 - - - -4 4 5 6 7 8 9 >> plot(t,x,t,lsim(h,x,t)) Warning: Simulation will start at the nonzero initial time T(). > In lti.lsim at 9 5 x -5 - -5-4 5 6 7 8 9 Note that the output explodes due to its instability!. (6 points) To realize her American Idol dream, a friend of yours has recently bought a microphone for her own recording studio. Unfortunately, the microphone is inexpensive and the quality is poor. She has recorded a sample sound file which you can find in distortedsound.wav from the homework webpage. Armed with your recent knowledge of MATLAB, you try to help her out to post-process the recording. After some research on the specifications, you find out that the transfer function of the microphone is as follows:

s H ( s) =.4 s + s +. +.5 s +.9 a. Could you design a linear system to compensate the distortion caused by the microphone? Please submit the MATLAB code for both the design of your compensating filter and the experiments. b. Due to your success in part a., your friend wants to further cut the cost by buying an even cheaper microphone. The sample sound file is stored in distortedsound.wav and the transfer function is almost the same as before except for a sign change in the numerator and a small change in gain: 8 6 s H ( s) =. s s +. +.5 s +.9 Can you use the same approach as in part a) to compensate for the distortion in this case? I highly recommend plotting the output first before attempting to play it with your computer speaker. Also try the compensating filter you obtained from part a). Please comment your results. The idea is to create a compensating filter in such a way that the overall system is as close as possible to a wire (no loss of information): 8 6 Microphone Compensating Filter = Given the microphone has a transfer function H(s), it is natural to use G(s) = k/h(s) as the compensating filter. The poles of H(s) then become the zeros of G(s) and the zeros of H(s) become the poles of G(s). Thus, even if H(s) is an (asymptotically) stable system, G(s) may not be. To guarantee the stability of both H(s) AND G(s), we want all the poles AND zeros of H(s) to be on the open left half plane. Such a system is called a minimum phase system. To check whether our first microphone is minimum phase, we check the pole zero map of H(s): >> H = tf(.4*[ e.e8],[.5e.9e6]) Transfer function:.4 s^ + 8 s + 4e6 ----------------------- s^ + 5 s +.9e6

>> pzmap(h).5 x 4 Pole-Zero Map.5 Imaginary Axis -.5 - -.5-8 -7-6 -5-4 - - - Real Axis Indeed, all the zeros and poles are on the open left half plane (the jw-axis is the right boundary of the figure.) As a result, you can apply G(s) = /H(s) to the sound and you should get a much clearer voice: >> [numh, denh] = tfdata(h,'v'); >> G = tf(denh, numh) Transfer function: s^ + 5 s +.9e6 -----------------------.4 s^ + 8 s + 4e6 >> s = wavread('distortedsound.wav'); >> tsteps = /44*(::(length(s)-)); % sampled @ 44.kHz >> y = lsim(g,s,tsteps); >> sound(y,44) For part b), once again let s consider whether the microphone transfer function is a minimum phase system: >> H = tf(.*[ -e.e8],[.5e.9e6]) Transfer function:. s^ - 6 s + e6 ----------------------- s^ + 5 s +.9e6 >> pzmap(h)

.5 x 4 Pole-Zero Map.5 Imaginary Axis -.5 - -.5-8 -7-6 -5-4 - - - Real Axis The zeros are on the right half plane and thus it is not a minimum phase system the inverse system G(z) = /H(z) will have poles on the right half plane and become unstable. If you simulate G(z) and plot the output, you will get something like this. >> [numh, denh] = tfdata(h,'v'); >> G = tf(denh, numh); >> s = wavread('distortedsound.wav'); >> y = lsim(g,s,tsteps); >> plot(tsteps,y).785 x 8 Output of G.4 -.745 4 6 8 I hope dearly that you didn t play this to your speaker! On the other hand, we can build an approximate inverse system by using positive feedback system. A G ( s) = + AH ( s)

for a constant A such that AH (jω) >> is large enough within the operating range. Expanding G (s) analytically, we have 6.As 6As +. A G ( s) = ( +.A) s + (.5 6A) s + (.9 +.A) By using Routh Array, you can easily show that G (s) does not have any RHP poles if -.97<A<5.. As we want A to be big, let s try A = 5. First we want to check AH (jω) : >> A = 5; trial = tf(a*numh,denh); >> bode(trial) Bode Diagram Magnitude (db) 5-5 6 Phase (deg) 8 4 5 Frequency (rad/sec) Note that the AH (jω) drops below ( db) around 4 rad/second (or 6 Hz). Human speech can contain frequency component up to 6 Hz, thus we would expect that our inverse filter can help only in the low-frequency range. >> G = tf(a*denh,a*numh+denh); >> y = lsim(g,s,tsteps); >> sound(y,44) How are you getting the desired results?. (4 points) We have seen the aliasing effect visually during lecture. In this problem, you are asked to explore the aliasing effect in audio. Download the MATLAB script aliasing_demo_audible.m from the homework webpage and run it. You will hear six tones at different frequencies: 5Hz, khz, khz, 4.5kHz, 5.5kHz and 7kHz. All the signals are sampled at 5kHz. Explain what you hear using the Nyquist Theorem. Aliasing occurs in the last four tones resulting in distortion on the pitch.

4. (4 points) The signal x( t) = 4 + 8cos(8π t) + cos(6π t) is sampled at a rate of samples per second. Plot the amplitude spectrum of the sampled signal showing the weight and the frequency of each component for f < 8 Hz. Show how the signal can be reconstructed from the samples. The Fourier transform of the signal is X f ) = 4δ ( f ) + 4δ ( f 4) + 4δ ( f + 4) + δ ( f 8) + δ ( f ( After sampling at Hz, the spectrum looks like 8) -64 - -8-4 4 8 64 Sampling frequency is Hz > the Nyquist rate = 8x = 6. Thus, the signal can be reconstructed perfectly by a sinc filter.