Frequency Response MUMT 501 Digital Audio Signal Processing

Size: px
Start display at page:

Download "Frequency Response MUMT 501 Digital Audio Signal Processing"

Transcription

1 Frequency Response MUMT 501 Digital Audio Signal Processing Gerald Lemay McGill University MUMT 501 Frequency Response 1

2 Table of Contents I Introduction... 3 I.1 Useful Math and Systems Concepts... 3 I.2 The Plan for this Lesson... 3 II Presenting Some First Ideas About the Frequency Response, H(Ω)... 3 II.1 The System Eigenfunction: the Complex Exponential... 4 II.2 Explaining the 180 o Phase Jump... 5 III Studying the Output of a Causal System... 9 III.1 Using MATLABʼs freqz... 9 III.1.1 Phase Plot in MATLAB III.1.2 Normalized Frequency in MATLAB III.1.3 db III.2 Predicting the Amplitude from the Magnitude Plot III.3 Using this System as a Filter III.4 Use of the Word causal III.5 Relevance of Transients to Music IV Including the Transient Response References Exercises Solutions to Exercises MUMT 501 Frequency Response 2

3 I Introduction We begin this discussion of frequency response by reviewing some math and systems concepts. I.1 Useful Math and Systems Concepts convolution equation y[n] = x[n] h[n] = h[n]* x[n] = h[k]x[n k] all k discrete-time Fourier transform equation: H(Ω) = h[n]e jωn all n DTFT identities and properties: δ[n] 1 x[n n d ] e jωn d X(Ω) I.2 The Plan for this Lesson After reviewing some math and systems concepts, we will introduce the concept of frequency response and study the steady-state and transient response of systems. II Presenting Some First Ideas About the Frequency Response, H(Ω) Consider the following single-input single-output LTI system: x[n] h[n] y[n] MUMT 501 Frequency Response 3

4 We now consider a very special input for this system. We have already seen that if the input x[n] = δ[n], then the output y[n] = h[n] and we call this output the impulse response. II.1 The System Eigenfunction: the Complex Exponential Now, what if the input x[n] = e jωn? From the convolution equation, the output y[n] is given by y[n] = h[n] x[n] = h[k]x[n k] all k = h[k]e jω(n k) all k = e jωn h[k]e jωk all k = e jωn H(Ω) This input is indeed special because when x[n] = e jωn, the output is a scaled version of this input. In fact, x[n] = e jωn is an eigenfunction of the LTI system and its associated eigenvalue is H(Ω) which is the DTFT of the impulse response. H(Ω) is called the frequency response. H(Ω) is in general a complex number and we find it useful to express its magnitude and phase as functions of frequency Ω where Ω is measured in radians and where Ω is related to the frequency f in Hertz and the sampling frequency f s in samples/sec by Ω = 2π f f s. MUMT 501 Frequency Response 4

5 II.2 Explaining the 180 o Phase Jump Example 1. Given an impulse response h[n], determine the frequency response H(Ω), the magnitude of the frequency response H(Ω) and the phase of the frequency response H(Ω). Let h[n] = 1 ( δ[n + 1] + δ[n] + δ[n 1] ) 3. From DTFT properties and identities, H(Ω) ( ) = 1 3 e jω +1+ e jω ( ) = cosΩ 3 This frequency response is real and even as we expected since the impulse response was also real and even. Remember that for real h[n], H(Ω) will be conjugate symmetric. That is, H(Ω) = H * ( Ω) and since h[n] is also even, there is no phase shift and H(Ω) is strictly real.it is instructive to plot H(Ω) before considering the magnitude and phase. MUMT 501 Frequency Response 5

6 Thus, a plot of H(Ω) = 1 ( 1+ 2cosΩ) vs Ω produces 3 Note that the zero-crossing occurs at Ω = = o π = 120o. We conclude that there will be an an additional phase shift of o at Ω = 120 o. MUMT 501 Frequency Response 6

7 Now, we plot the magnitude of the frequency response. That is, we plot H (Ω) = 1 (1+ 2cosΩ) 3 Because we are plotting absolute values, do you see how the response curve gets flipped after Ω = 120 o? MUMT 501 Frequency Response 7

8 If we plot the phase, we obtain MUMT 501 Frequency Response 8

9 III Studying the Output of a Causal System In the previous example, our system was non-causal. If we delay this impulse response by one sample, we can produce a version which will be causal. That is, h 1 [n] = h[n 1] = 1 (δ[n]+δ[n 1]+δ[n 2]) 3 whose frequency response is given by H 1 (Ω) = e jω H(Ω) = 1 ( 1+ 2cos(Ω) )e jω 3 Note that the magnitude is the same as in example 1 but that the phase is now Ω with an additional phase of 180 o at Ω = 120 o. III.1 Using MATLABʼs freqz An effective way to plot the magnitude and phase for a causal LTI system is to use the MATLAB command freqz. That is, freqz([1 1 1]/3,1) whose arguments will be clearer when we discuss the Z-transform. MUMT 501 Frequency Response 9

10 MUMT 501 Frequency Response 10

11 III.1.1 Phase Plot in MATLAB Letʼs talk about the phase plot first. Notice that the phase is linear. Ideally, the phase would be zero for a system but linear phase is the next best thing. Just before the frequency of Ω = 120 o, the phase is 120 o, and just after Ω = 120 o, the phase has an additional 180 o to give us 120 o +180 o = 60 o. III.1.2 Normalized Frequency in MATLAB Now, the frequency axis for both plots is in normalized frequency where 1 corresponds to Ω = π = 180 o. Do you see that Ω = 120 o corresponds to 120o o = 0.67 in normalized frequency. To convert from normalized frequency to frequency in 180 radians, just multiply by π. III.1.3 db Now, letʼs talk about the magnitude. The plot is in db which is the symbol for decibel. To convert to db, take 20log 10 ( H(Ω) ) For example, at Ω = π, the magnitude in db is given by 1 20log 10 ( 1+ 2cos(0.5098π )) = which agrees with the MATLAB plot 3 MUMT 501 Frequency Response 11

12 MUMT 501 Frequency Response 12

13 III.2 Predicting the Amplitude from the Magnitude Plot If we use as input, a sinusoid whose frequency is Ω = π 3 = with amplitude 2, we see that the magnitude of the frequency response at that frequency is H(Ω) = cos(60o ) = 2 3 On our magnitude plot, MUMT 501 Frequency Response 13

14 Thus, our output amplitude will be 2 H(Ω) = (2) 2 3 = 4 which agrees with our output plot. 3 MUMT 501 Frequency Response 14

15 We could predict the amplitude and phase of the output of a sinusoid for a given frequency from knowledge of the amplitude of the input sinusoid and the magnitude of the frequency response. Note that the output sinusoid compared to the input sinusoid, has the same frequency (itʼs a linear system), has a phase shift of one sample (one sample shift from the symmetric version), and that the predicted amplitude of 4/3 does not occur immediately. In fact, at n = 2 it appears that our output sinusoid has an amplitude of 1. We will return to this later when we talk about transient responses. III.3 Using this System as a Filter When we look at the magnitude plot, we see that an input signal of frequency corresponding to Ω = 120 o will have an output of zero. Letʼs construct such a signal. Let x[n] = 2cos 2π 3 n u[n] and use the MATLAB command filter to obtain the output y[n]. Hereʼs the MATLAB: L = 10; n = 0:L; x = 2*cos((2*pi/3)*n); stem(n,filter([1 1 1]/3,1,x)) set(gca,'ylim',[ ],'Ygrid','on') title('output y[n]') Here are the input and output sequences. MUMT 501 Frequency Response 15

16 MUMT 501 Frequency Response 16

17 Notice that the output is indeed zero but only after the third sample. We tell you why right away and then go into more detail in the next section. MUMT 501 Frequency Response 17

18 The why: the frequency response relates to the steady-state output. It assumes that the input signal is present for alltimes. Remember that we derived the frequency response by considering an input x[n] = e jωn and not for an input that started at n = 0 that is x[n] = e jωn u[n]. We will see in the next section that for a causal input, the output y[n] is actually comprised of two parts: a steady-state portion y ss [n] and a transient portion y tr [n]. In fact, y[n] = y ss [n]+ y tr [n]. III.4 Use of the Word causal We slipped in the word causal to describe a signal, causal input, when technically, causality deals with systems and not with signals. So whatʼs up? Well, a system is causal if its impulse response h[n] is zero for n < 0. We borrow this idea to say that a signal which is zero for n < 0, is a causal signal. III.5 Relevance of Transients to Music The relevance to music, is that the beginning of a musical sound gives us auditory cues that help us identify which instrument is being played. If you omit the beginning sound, it is difficult to discriminate between a trumpet and a violin. The beginning sound is a signal referred to as the onset transient, sometimes called the attack, and is the sum of the steady-state response and the transient response. The sustain portion is essentially the steady-state response and occurs after the transient response has decayed to zero. The transient response will decay to zero for finite-impulse response (FIR) systems and for stable infinite-impulse response (IIR) systems. MUMT 501 Frequency Response 18

19 IV Including the Transient Response This section is adapted from ([Oppenheim, 1998], p. 46) To study the transient response y tr [n], we let the input start at time n = 0. That is, let x[n] = e jωn u[n] and calculate the output y[n] using convolution. y[n] = h[n] x[n] = h[k]x[n k] all k = h[k]e jω(n k) u[n k] all k = e jωn h[k]e jωk u[n k] all k Now, we see how that delayed unit step impacts the summation. u[n k] = 0, k > n 1, k n from the fact that the unit step being equal to one when its argument is greater than or equal to zero, we arrive at a value for one of the limits in the summation, i.e, n k 0 k n This gives us the upper limit for the summation. If we assume that the LTI system is causal, then h[k] = 0 for k < 0. This gives us the lower limit for the summation. Thus, our expression for y[n] becomes MUMT 501 Frequency Response 19

20 y[n] = e jωn n k =0 h[k]e jωk. This closely resembles our result for the steady-state response given by the frequency response but it includes additional information about the transient response. To see this, write our previous result as y[n] = e jωn n h[k]e jωk k =0 = e jωn h[k]e jωk h[k]e jωk k =0 k =n+1 We recognize the first summation as the frequency response H(Ω). Thus, y[n] = e jωn H (Ω) e jωn h[k]e jωk k =n+1 and we identify the first term as the steady-state response y ss [n] and the second term as the transient response y tr [n]. Thus, y[n] = y ss [n]+ y tr [n] and y tr [n] = e jωn h[k]e jωk. k =n+1 We will explore the computation of the transient response when the input is a causal sinusoid in one of the assignment problems. MUMT 501 Frequency Response 20

21 References [Depalle, 2008] Course notes from MUMT 501, Digital Audio Signal Processing, taught by Professor Phlippe Depalle, Fall [Oppenheim, 1998] Discrete-Time Signal Processing, 2 nd edition, Alan V. Oppenheim, Ronald W. Schafer, and John R. Buck, Prentice-Hall, [Meine, 2002] Fast Sinusoid Synthesis for MPEG-4 HILN Parametric Audio Decoding, Nikolaus Meine and Heiko Purnhagen, Proc. of the 5th Int. Conference on Digital Audio Effects (DAFx-02), Hamburg, Germany, September 26-28, MUMT 501 Frequency Response 21

22 Exercises Exercise 1. We use sinusoids frequently in signal processing. Hereʼs a clever use of discrete-time systems to generate a sinusoid. Use MATLAB to implement the fast sinusoid algorithm [Meine, 2002], [Depalle, 2008] x[0] = Acos(ϕ o ) x[1] = Acos(ω o +ϕ o ) x[n] = 2cos(ω o )x[n 1] x[n 2], for n = 2,3,...,N 1 Exercise 2. Determine the frequency response H(Ω) for h[n] = 1 4 MATLABʼs freqz command. Relate these results to your analytic expression for H(Ω). 3 k=0 δ[n k]. Plot the magnitude and phase using MUMT 501 Frequency Response 22

23 Solutions to Exercises Solution to Exercise 1. Use MATLAB to implement the fast sinusoid algorithm. The normalized frequency F o is expressed as F o = f F s where the sampling frequency F s = samples/sec. From x[n] = Acos(2πF o n +ϕ), x[n 1] = Acos(2πF o (n 1) +ϕ) = Acos(2πF o n +ϕ 2πF o ) = Acos(2πF o n +ϕ)cos(2πf o ) + Asin(2πF o n +ϕ)sin(2πf o ) x[n 2] = Acos(2πF o (n 1) +ϕ)cos(2πf o ) + Asin(2πF o (n 1) +ϕ)sin(2πf o ) Also, from x[n] = Acos(2πF o n +ϕ), we can write x[n] = Acos(2πF o n +ϕ) = Acos(2πF o (n 1) + 2πF o +ϕ) = Acos(2πF o (n 1) +ϕ + 2πF o ) = Acos(2πF o (n 1) +ϕ)cos(2πf o ) Asin(2πF o (n 1) +ϕ)sin(2πf o ) MUMT 501 Frequency Response 23

24 Thus, x[n]+ x[n 2] = 2Acos(2πF o (n 1) +ϕ)cos(2πf o ) = 2cos(2πF o )Acos(2πF o (n 1) +ϕ) = 2cos(2πF o )x[n 1] That is, x[n] = Cx[n 1] x[n 2], where the constant C = 2cos(2πF o ). Note that the constant is calculated once outside the loop and that the constant has a value uniquely determined by the frequency specification. Thus, the amplitude and phase information are contained in the two initial conditions. % FastSinusoid.m Fs = ; f = 440.; Fo = f/fs; %normalized frequency dur = 1; %[sec] phi = -pi/2; A = 1.; N = round(dur*fs); x = zeros(n,1); x(1) = A*cos(phi); x(2) = A*cos(2*pi*Fo + phi); MUMT 501 Frequency Response 24

25 C = 2*cos(2*pi*Fo); for index=3:n x(index) = C*x(index-1) - x(index-2); end t=linspace(0,1,fs); plot(t(1:400),x(1:400)) title('fast Sinusoid') set(gca,'xgrid','on') set(gca,'ylim',[ ],'Ygrid','on') %pause X = fft(x); plot([0:999],abs(x(1:1000))) title('magnitude spectrum for f = 440 Hz fast sinusoid') %sound(x,fs) MUMT 501 Frequency Response 25

26 1/( ) ans = Why is this value not equal to 440? MUMT 501 Frequency Response 26

27 Why is the value in the following plot at exactly 440 (implying no numerical imprecision)? MUMT 501 Frequency Response 27

28 Solution to Exercise 2. Determine the frequency response H(Ω) for h[n] = 1 4 using MATLABʼs freqz command. Relate these results to your analytic expression for H(Ω). Using the result that 3 k=0 δ[n k]. Plot the magnitude and phase 1 sin[ω(m +1) / 2] H(Ω) = e jωm /2 from ([Oppenheim, 1998], p. 62 for h[n] = M +1 sin(ω / 2) we obtain H(Ω) = 1 4 sin2ω j3ω/2 e sin(ω / 2) 1 M +1, for 0 n M 0, otherwise for M = 3 The MATLAB command is freqz([ ]/4,1) and produces the following magnitude and phase plots MUMT 501 Frequency Response 28

29 MUMT 501 Frequency Response 29

30 The analytic expression for the magnitude of H(Ω) is H(Ω) = log 10 (1) = 0 which agrees with the magnitude plot. sin(2ω) sin(ω / 2). As Ω 0, H(Ω) 1 2Ω 4 Ω / 2 = 1 and For values of the argument of sin equal to π, we have the first zero crossing. That is, 2Ω = π Ω = π 2 which in normalized frequency is 1 = 0.5 which agrees with the magnitude plot. There is another zero at 2Ω = 2π Ω = π which 2 also agrees with the plot. There is an additional 180 o of phase at Ω = π 2 where the phase just before this value of Ω is 3Ω 2 = 3(π / 2) 2 = 3π 4 = 135o. MUMT 501 Frequency Response 30

Frequency Response of FIR Filters

Frequency Response of FIR Filters Frequency Response of FIR Filters Chapter 6 This chapter continues the study of FIR filters from Chapter 5, but the emphasis is frequency response, which relates to how the filter responds to an input

More information

(Refer Slide Time: 01:11-01:27)

(Refer Slide Time: 01:11-01:27) Digital Signal Processing Prof. S. C. Dutta Roy Department of Electrical Engineering Indian Institute of Technology, Delhi Lecture - 6 Digital systems (contd.); inverse systems, stability, FIR and IIR,

More information

UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE 101 - Fall 2010 Linear Systems Fundamentals

UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE 101 - Fall 2010 Linear Systems Fundamentals UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE 101 - Fall 2010 Linear Systems Fundamentals FINAL EXAM WITH SOLUTIONS (YOURS!) You are allowed one 2-sided sheet of

More information

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

CHAPTER 6 Frequency Response, Bode Plots, and Resonance ELECTRICAL CHAPTER 6 Frequency Response, Bode Plots, and Resonance 1. State the fundamental concepts of Fourier analysis. 2. Determine the output of a filter for a given input consisting of sinusoidal

More information

Design of Efficient Digital Interpolation Filters for Integer Upsampling. Daniel B. Turek

Design of Efficient Digital Interpolation Filters for Integer Upsampling. Daniel B. Turek Design of Efficient Digital Interpolation Filters for Integer Upsampling by Daniel B. Turek Submitted to the Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements

More information

Introduction to the Z-transform

Introduction to the Z-transform ECE 3640 Lecture 2 Z Transforms Objective: Z-transforms are to difference equations what Laplace transforms are to differential equations. In this lecture we are introduced to Z-transforms, their inverses,

More information

SIGNAL PROCESSING & SIMULATION NEWSLETTER

SIGNAL PROCESSING & SIMULATION NEWSLETTER 1 of 10 1/25/2008 3:38 AM SIGNAL PROCESSING & SIMULATION NEWSLETTER Note: This is not a particularly interesting topic for anyone other than those who ar e involved in simulation. So if you have difficulty

More information

Throughout this text we will be considering various classes of signals and systems, developing models for them and studying their properties.

Throughout this text we will be considering various classes of signals and systems, developing models for them and studying their properties. C H A P T E R 2 Signals and Systems This text assumes a basic background in the representation of linear, time-invariant systems and the associated continuous-time and discrete-time signals, through convolution,

More information

SGN-1158 Introduction to Signal Processing Test. Solutions

SGN-1158 Introduction to Signal Processing Test. Solutions SGN-1158 Introduction to Signal Processing Test. Solutions 1. Convolve the function ( ) with itself and show that the Fourier transform of the result is the square of the Fourier transform of ( ). (Hints:

More information

3 Signals and Systems: Part II

3 Signals and Systems: Part II 3 Signals and Systems: Part II Recommended Problems P3.1 Sketch each of the following signals. (a) x[n] = b[n] + 3[n - 3] (b) x[n] = u[n] - u[n - 5] (c) x[n] = 6[n] + 1n + (i)2 [n - 2] + (i)ag[n - 3] (d)

More information

The Z transform (3) 1

The Z transform (3) 1 The Z transform (3) 1 Today Analysis of stability and causality of LTI systems in the Z domain The inverse Z Transform Section 3.3 (read class notes first) Examples 3.9, 3.11 Properties of the Z Transform

More information

min ǫ = E{e 2 [n]}. (11.2)

min ǫ = E{e 2 [n]}. (11.2) C H A P T E R 11 Wiener Filtering INTRODUCTION In this chapter we will consider the use of LTI systems in order to perform minimum mean-square-error (MMSE) estimation of a WSS random process of interest,

More information

TTT4110 Information and Signal Theory Solution to exam

TTT4110 Information and Signal Theory Solution to exam Norwegian University of Science and Technology Department of Electronics and Telecommunications TTT4 Information and Signal Theory Solution to exam Problem I (a The frequency response is found by taking

More information

The continuous and discrete Fourier transforms

The continuous and discrete Fourier transforms FYSA21 Mathematical Tools in Science The continuous and discrete Fourier transforms Lennart Lindegren Lund Observatory (Department of Astronomy, Lund University) 1 The continuous Fourier transform 1.1

More information

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201 Sampling and Interpolation Yao Wang Polytechnic University, Brooklyn, NY1121 http://eeweb.poly.edu/~yao Outline Basics of sampling and quantization A/D and D/A converters Sampling Nyquist sampling theorem

More information

Auto-Tuning Using Fourier Coefficients

Auto-Tuning Using Fourier Coefficients Auto-Tuning Using Fourier Coefficients Math 56 Tom Whalen May 20, 2013 The Fourier transform is an integral part of signal processing of any kind. To be able to analyze an input signal as a superposition

More information

1.1 Discrete-Time Fourier Transform

1.1 Discrete-Time Fourier Transform 1.1 Discrete-Time Fourier Transform The discrete-time Fourier transform has essentially the same properties as the continuous-time Fourier transform, and these properties play parallel roles in continuous

More information

Design of FIR Filters

Design of FIR Filters Design of FIR Filters Elena Punskaya www-sigproc.eng.cam.ac.uk/~op205 Some material adapted from courses by Prof. Simon Godsill, Dr. Arnaud Doucet, Dr. Malcolm Macleod and Prof. Peter Rayner 68 FIR as

More information

TTT4120 Digital Signal Processing Suggested Solution to Exam Fall 2008

TTT4120 Digital Signal Processing Suggested Solution to Exam Fall 2008 Norwegian University of Science and Technology Department of Electronics and Telecommunications TTT40 Digital Signal Processing Suggested Solution to Exam Fall 008 Problem (a) The input and the input-output

More information

10 Discrete-Time Fourier Series

10 Discrete-Time Fourier Series 10 Discrete-Time Fourier Series In this and the next lecture we parallel for discrete time the discussion of the last three lectures for continuous time. Specifically, we consider the representation of

More information

Engineering Sciences 22 Systems Summer 2004

Engineering Sciences 22 Systems Summer 2004 Engineering Sciences 22 Systems Summer 24 BODE PLOTS A Bode plot is a standard format for plotting frequency response of LTI systems. Becoming familiar with this format is useful because: 1. It is a standard

More information

Digital Signal Processing IIR Filter Design via Impulse Invariance

Digital Signal Processing IIR Filter Design via Impulse Invariance Digital Signal Processing IIR Filter Design via Impulse Invariance D. Richard Brown III D. Richard Brown III 1 / 11 Basic Procedure We assume here that we ve already decided to use an IIR filter. The basic

More information

The Phase Modulator In NBFM Voice Communication Systems

The Phase Modulator In NBFM Voice Communication Systems The Phase Modulator In NBFM Voice Communication Systems Virgil Leenerts 8 March 5 The phase modulator has been a point of discussion as to why it is used and not a frequency modulator in what are called

More information

UNIVERSITY OF CALIFORNIA AT BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences. EE105 Lab Experiments

UNIVERSITY OF CALIFORNIA AT BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences. EE105 Lab Experiments UNIVERSITY OF CALIFORNIA AT BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences EE15 Lab Experiments Bode Plot Tutorial Contents 1 Introduction 1 2 Bode Plots Basics

More information

CIRCUITS LABORATORY EXPERIMENT 3. AC Circuit Analysis

CIRCUITS LABORATORY EXPERIMENT 3. AC Circuit Analysis CIRCUITS LABORATORY EXPERIMENT 3 AC Circuit Analysis 3.1 Introduction The steady-state behavior of circuits energized by sinusoidal sources is an important area of study for several reasons. First, the

More information

Discrete-Time Signals and Systems

Discrete-Time Signals and Systems 2 Discrete-Time Signals and Systems 2.0 INTRODUCTION The term signal is generally applied to something that conveys information. Signals may, for example, convey information about the state or behavior

More information

Using the Impedance Method

Using the Impedance Method Using the Impedance Method The impedance method allows us to completely eliminate the differential equation approach for the determination of the response of circuits. In fact the impedance method even

More information

Signal Detection C H A P T E R 14 14.1 SIGNAL DETECTION AS HYPOTHESIS TESTING

Signal Detection C H A P T E R 14 14.1 SIGNAL DETECTION AS HYPOTHESIS TESTING C H A P T E R 4 Signal Detection 4. SIGNAL DETECTION AS HYPOTHESIS TESTING In Chapter 3 we considered hypothesis testing in the context of random variables. The detector resulting in the minimum probability

More information

Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization.

Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization. Signal Processing First Lab 01: Introduction to MATLAB Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section

More information

FFT Algorithms. Chapter 6. Contents 6.1

FFT Algorithms. Chapter 6. Contents 6.1 Chapter 6 FFT Algorithms Contents Efficient computation of the DFT............................................ 6.2 Applications of FFT................................................... 6.6 Computing DFT

More information

PYKC Jan-7-10. Lecture 1 Slide 1

PYKC Jan-7-10. Lecture 1 Slide 1 Aims and Objectives E 2.5 Signals & Linear Systems Peter Cheung Department of Electrical & Electronic Engineering Imperial College London! By the end of the course, you would have understood: Basic signal

More information

The Calculation of G rms

The Calculation of G rms The Calculation of G rms QualMark Corp. Neill Doertenbach The metric of G rms is typically used to specify and compare the energy in repetitive shock vibration systems. However, the method of arriving

More information

Analysis/resynthesis with the short time Fourier transform

Analysis/resynthesis with the short time Fourier transform Analysis/resynthesis with the short time Fourier transform summer 2006 lecture on analysis, modeling and transformation of audio signals Axel Röbel Institute of communication science TU-Berlin IRCAM Analysis/Synthesis

More information

First, we show how to use known design specifications to determine filter order and 3dB cut-off

First, we show how to use known design specifications to determine filter order and 3dB cut-off Butterworth Low-Pass Filters In this article, we describe the commonly-used, n th -order Butterworth low-pass filter. First, we show how to use known design specifications to determine filter order and

More information

Frequency Domain and Fourier Transforms

Frequency Domain and Fourier Transforms Chapter 4 Frequency Domain and Fourier Transforms Frequency domain analysis and Fourier transforms are a cornerstone of signal and system analysis. These ideas are also one of the conceptual pillars within

More information

Lab 1. The Fourier Transform

Lab 1. The Fourier Transform Lab 1. The Fourier Transform Introduction In the Communication Labs you will be given the opportunity to apply the theory learned in Communication Systems. Since this is your first time to work in the

More information

Introduction to Digital Filters

Introduction to Digital Filters CHAPTER 14 Introduction to Digital Filters Digital filters are used for two general purposes: (1) separation of signals that have been combined, and (2) restoration of signals that have been distorted

More information

L9: Cepstral analysis

L9: Cepstral analysis L9: Cepstral analysis The cepstrum Homomorphic filtering The cepstrum and voicing/pitch detection Linear prediction cepstral coefficients Mel frequency cepstral coefficients This lecture is based on [Taylor,

More information

Understanding Poles and Zeros

Understanding Poles and Zeros MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING 2.14 Analysis and Design of Feedback Control Systems Understanding Poles and Zeros 1 System Poles and Zeros The transfer function

More information

Appendix D Digital Modulation and GMSK

Appendix D Digital Modulation and GMSK D1 Appendix D Digital Modulation and GMSK A brief introduction to digital modulation schemes is given, showing the logical development of GMSK from simpler schemes. GMSK is of interest since it is used

More information

B3. Short Time Fourier Transform (STFT)

B3. Short Time Fourier Transform (STFT) B3. Short Time Fourier Transform (STFT) Objectives: Understand the concept of a time varying frequency spectrum and the spectrogram Understand the effect of different windows on the spectrogram; Understand

More information

HYBRID FIR-IIR FILTERS By John F. Ehlers

HYBRID FIR-IIR FILTERS By John F. Ehlers HYBRID FIR-IIR FILTERS By John F. Ehlers Many traders have come to me, asking me to make their indicators act just one day sooner. They are convinced that this is just the edge they need to make a zillion

More information

9 Fourier Transform Properties

9 Fourier Transform Properties 9 Fourier Transform Properties The Fourier transform is a major cornerstone in the analysis and representation of signals and linear, time-invariant systems, and its elegance and importance cannot be overemphasized.

More information

The Algorithms of Speech Recognition, Programming and Simulating in MATLAB

The Algorithms of Speech Recognition, Programming and Simulating in MATLAB FACULTY OF ENGINEERING AND SUSTAINABLE DEVELOPMENT. The Algorithms of Speech Recognition, Programming and Simulating in MATLAB Tingxiao Yang January 2012 Bachelor s Thesis in Electronics Bachelor s Program

More information

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

ε: Voltage output of Signal Generator (also called the Source voltage or Applied Experiment #10: LR & RC Circuits Frequency Response EQUIPMENT NEEDED Science Workshop Interface Power Amplifier (2) Voltage Sensor graph paper (optional) (3) Patch Cords Decade resistor, capacitor, and

More information

Clutter Filter Design for Ultrasound Color Flow Imaging

Clutter Filter Design for Ultrasound Color Flow Imaging Clutter Filter Design for Ultrasound Color Flow Imaging by Steinar Bjærum (Corresponding author) Department of Physiology and Biomedical Engineering Norwegian University of Science and Technology Trondheim,

More information

Em bedded DSP : I ntroduction to Digital Filters

Em bedded DSP : I ntroduction to Digital Filters Embedded DSP : Introduction to Digital Filters 1 Em bedded DSP : I ntroduction to Digital Filters Digital filters are a important part of DSP. In fact their extraordinary performance is one of the keys

More information

Frequency Response of Filters

Frequency Response of Filters School of Engineering Department of Electrical and Computer Engineering 332:224 Principles of Electrical Engineering II Laboratory Experiment 2 Frequency Response of Filters 1 Introduction Objectives To

More information

Controller Design in Frequency Domain

Controller Design in Frequency Domain ECSE 4440 Control System Engineering Fall 2001 Project 3 Controller Design in Frequency Domain TA 1. Abstract 2. Introduction 3. Controller design in Frequency domain 4. Experiment 5. Colclusion 1. Abstract

More information

Convolution. The Delta Function and Impulse Response

Convolution. The Delta Function and Impulse Response CHAPTER 6 Convolution Convolution is a mathematical way of combining two signals to form a third signal. It is the single most important technique in Digital Signal Processing. Using the strategy of impulse

More information

Introduction to Complex Numbers in Physics/Engineering

Introduction to Complex Numbers in Physics/Engineering Introduction to Complex Numbers in Physics/Engineering ference: Mary L. Boas, Mathematical Methods in the Physical Sciences Chapter 2 & 14 George Arfken, Mathematical Methods for Physicists Chapter 6 The

More information

25. AM radio receiver

25. AM radio receiver 1 25. AM radio receiver The chapter describes the programming of a microcontroller to demodulate a signal from a local radio station. To keep the circuit simple the signal from the local amplitude modulated

More information

G. GRAPHING FUNCTIONS

G. GRAPHING FUNCTIONS G. GRAPHING FUNCTIONS To get a quick insight int o how the graph of a function looks, it is very helpful to know how certain simple operations on the graph are related to the way the function epression

More information

Lock - in Amplifier and Applications

Lock - in Amplifier and Applications Lock - in Amplifier and Applications What is a Lock in Amplifier? In a nut shell, what a lock-in amplifier does is measure the amplitude V o of a sinusoidal voltage, V in (t) = V o cos(ω o t) where ω o

More information

UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE 101 - Fall 2009 Linear Systems Fundamentals

UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE 101 - Fall 2009 Linear Systems Fundamentals UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE 101 - Fall 2009 Linear Systems Fundamentals MIDTERM EXAM You are allowed one 2-sided sheet of notes. No books, no other

More information

2 Signals and Systems: Part I

2 Signals and Systems: Part I 2 Signals and Systems: Part I In this lecture, we consider a number of basic signals that will be important building blocks later in the course. Specifically, we discuss both continuoustime and discrete-time

More information

CM0340 SOLNS. Do not turn this page over until instructed to do so by the Senior Invigilator.

CM0340 SOLNS. Do not turn this page over until instructed to do so by the Senior Invigilator. CARDIFF UNIVERSITY EXAMINATION PAPER Academic Year: 2008/2009 Examination Period: Examination Paper Number: Examination Paper Title: SOLUTIONS Duration: Autumn CM0340 SOLNS Multimedia 2 hours Do not turn

More information

Chapter 15, example problems:

Chapter 15, example problems: Chapter, example problems: (.0) Ultrasound imaging. (Frequenc > 0,000 Hz) v = 00 m/s. λ 00 m/s /.0 mm =.0 0 6 Hz. (Smaller wave length implies larger frequenc, since their product,

More information

Signals and Systems. Richard Baraniuk NONRETURNABLE NO REFUNDS, EXCHANGES, OR CREDIT ON ANY COURSE PACKETS

Signals and Systems. Richard Baraniuk NONRETURNABLE NO REFUNDS, EXCHANGES, OR CREDIT ON ANY COURSE PACKETS Signals and Systems Richard Baraniuk NONRETURNABLE NO REFUNDS, EXCHANGES, OR CREDIT ON ANY COURSE PACKETS Signals and Systems Course Authors: Richard Baraniuk Contributing Authors: Thanos Antoulas Richard

More information

Part IB Paper 6: Information Engineering LINEAR SYSTEMS AND CONTROL Dr Glenn Vinnicombe HANDOUT 3. Stability and pole locations.

Part IB Paper 6: Information Engineering LINEAR SYSTEMS AND CONTROL Dr Glenn Vinnicombe HANDOUT 3. Stability and pole locations. Part IB Paper 6: Information Engineering LINEAR SYSTEMS AND CONTROL Dr Glenn Vinnicombe HANDOUT 3 Stability and pole locations asymptotically stable marginally stable unstable Imag(s) repeated poles +

More information

Second Order Systems

Second Order Systems Second Order Systems Second Order Equations Standard Form G () s = τ s K + ζτs + 1 K = Gain τ = Natural Period of Oscillation ζ = Damping Factor (zeta) Note: this has to be 1.0!!! Corresponding Differential

More information

USB 3.0 CDR Model White Paper Revision 0.5

USB 3.0 CDR Model White Paper Revision 0.5 USB 3.0 CDR Model White Paper Revision 0.5 January 15, 2009 INTELLECTUAL PROPERTY DISCLAIMER THIS WHITE PAPER IS PROVIDED TO YOU AS IS WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY,

More information

S. Boyd EE102. Lecture 1 Signals. notation and meaning. common signals. size of a signal. qualitative properties of signals.

S. Boyd EE102. Lecture 1 Signals. notation and meaning. common signals. size of a signal. qualitative properties of signals. S. Boyd EE102 Lecture 1 Signals notation and meaning common signals size of a signal qualitative properties of signals impulsive signals 1 1 Signals a signal is a function of time, e.g., f is the force

More information

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes) NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 5 8 Student Outcomes Students know the definition of a number raised to a negative exponent. Students simplify and write equivalent expressions that contain

More information

SR2000 FREQUENCY MONITOR

SR2000 FREQUENCY MONITOR SR2000 FREQUENCY MONITOR THE FFT SEARCH FUNCTION IN DETAILS FFT Search is a signal search using FFT (Fast Fourier Transform) technology. The FFT search function first appeared with the SR2000 Frequency

More information

Trigonometric functions and sound

Trigonometric functions and sound Trigonometric functions and sound The sounds we hear are caused by vibrations that send pressure waves through the air. Our ears respond to these pressure waves and signal the brain about their amplitude

More information

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore. This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore. Title Transcription of polyphonic signals using fast filter bank( Accepted version ) Author(s) Foo, Say Wei;

More information

MATHEMATICAL SURVEY AND APPLICATION OF THE CROSS-AMBIGUITY FUNCTION

MATHEMATICAL SURVEY AND APPLICATION OF THE CROSS-AMBIGUITY FUNCTION MATHEMATICAL SURVEY AND APPLICATION OF THE CROSS-AMBIGUITY FUNCTION Dennis Vandenberg Department of Mathematical Sciences Indiana University South Bend E-mail Address: djvanden@iusb.edu Submitted to the

More information

AC CIRCUITS - CAPACITORS AND INDUCTORS

AC CIRCUITS - CAPACITORS AND INDUCTORS EXPRIMENT#8 AC CIRCUITS - CAPACITORS AND INDUCTORS NOTE: Two weeks are allocated for this experiment. Before performing this experiment, review the Proper Oscilloscope Use section of Experiment #7. Objective

More information

AVR223: Digital Filters with AVR. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR223: Digital Filters with AVR. 8-bit Microcontrollers. Application Note. Features. 1 Introduction AVR223: Digital Filters with AVR Features Implementation of Digital Filters Coefficient and Data scaling Fast Implementation of 4 th Order FIR Filter Fast Implementation of 2 nd Order IIR Filter Methods

More information

Introduction to Bode Plot

Introduction to Bode Plot Introduction to Bode Plot 2 plots both have logarithm of frequency on x-axis o y-axis magnitude of transfer function, H(s), in db o y-axis phase angle The plot can be used to interpret how the input affects

More information

SOFTWARE FOR GENERATION OF SPECTRUM COMPATIBLE TIME HISTORY

SOFTWARE FOR GENERATION OF SPECTRUM COMPATIBLE TIME HISTORY 3 th World Conference on Earthquake Engineering Vancouver, B.C., Canada August -6, 24 Paper No. 296 SOFTWARE FOR GENERATION OF SPECTRUM COMPATIBLE TIME HISTORY ASHOK KUMAR SUMMARY One of the important

More information

Lecture 9. Poles, Zeros & Filters (Lathi 4.10) Effects of Poles & Zeros on Frequency Response (1) Effects of Poles & Zeros on Frequency Response (3)

Lecture 9. Poles, Zeros & Filters (Lathi 4.10) Effects of Poles & Zeros on Frequency Response (1) Effects of Poles & Zeros on Frequency Response (3) Effects of Poles & Zeros on Frequency Response (1) Consider a general system transfer function: zeros at z1, z2,..., zn Lecture 9 Poles, Zeros & Filters (Lathi 4.10) The value of the transfer function

More information

EE 402 RECITATION #13 REPORT

EE 402 RECITATION #13 REPORT MIDDLE EAST TECHNICAL UNIVERSITY EE 402 RECITATION #13 REPORT LEAD-LAG COMPENSATOR DESIGN F. Kağan İPEK Utku KIRAN Ç. Berkan Şahin 5/16/2013 Contents INTRODUCTION... 3 MODELLING... 3 OBTAINING PTF of OPEN

More information

Musical Analysis and Synthesis in Matlab

Musical Analysis and Synthesis in Matlab 3. James Stewart, Calculus (5th ed.), Brooks/Cole, 2003. 4. TI-83 Graphing Calculator Guidebook, Texas Instruments,1995. Musical Analysis and Synthesis in Matlab Mark R. Petersen (mark.petersen@colorado.edu),

More information

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones Final Year Project Progress Report Frequency-Domain Adaptive Filtering Myles Friel 01510401 Supervisor: Dr.Edward Jones Abstract The Final Year Project is an important part of the final year of the Electronic

More information

Control System Definition

Control System Definition Control System Definition A control system consist of subsytems and processes (or plants) assembled for the purpose of controlling the outputs of the process. For example, a furnace produces heat as a

More information

Time series analysis Matlab tutorial. Joachim Gross

Time series analysis Matlab tutorial. Joachim Gross Time series analysis Matlab tutorial Joachim Gross Outline Terminology Sampling theorem Plotting Baseline correction Detrending Smoothing Filtering Decimation Remarks Focus on practical aspects, exercises,

More information

Class Note for Signals and Systems. Stanley Chan University of California, San Diego

Class Note for Signals and Systems. Stanley Chan University of California, San Diego Class Note for Signals and Systems Stanley Chan University of California, San Diego 2 Acknowledgement This class note is prepared for ECE 101: Linear Systems Fundamentals at the University of California,

More information

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform MATH 433/533, Fourier Analysis Section 11, The Discrete Fourier Transform Now, instead of considering functions defined on a continuous domain, like the interval [, 1) or the whole real line R, we wish

More information

7. Beats. sin( + λ) + sin( λ) = 2 cos(λ) sin( )

7. Beats. sin( + λ) + sin( λ) = 2 cos(λ) sin( ) 34 7. Beats 7.1. What beats are. Musicians tune their instruments using beats. Beats occur when two very nearby pitches are sounded simultaneously. We ll make a mathematical study of this effect, using

More information

Short-time FFT, Multi-taper analysis & Filtering in SPM12

Short-time FFT, Multi-taper analysis & Filtering in SPM12 Short-time FFT, Multi-taper analysis & Filtering in SPM12 Computational Psychiatry Seminar, FS 2015 Daniel Renz, Translational Neuromodeling Unit, ETHZ & UZH 20.03.2015 Overview Refresher Short-time Fourier

More information

Current-Transformer Phase-Shift Compensation and Calibration

Current-Transformer Phase-Shift Compensation and Calibration Application Report SLAA122 February 2001 Current-Transformer Phase-Shift Compensation and Calibration Kes Tam Mixed Signal Products ABSTRACT This application report demonstrates a digital technique to

More information

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective Introduction to Digital Signal Processing and Digital Filtering chapter 1 Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction Digital signal processing (DSP) refers to anything

More information

Digital Modulation. David Tipper. Department of Information Science and Telecommunications University of Pittsburgh. Typical Communication System

Digital Modulation. David Tipper. Department of Information Science and Telecommunications University of Pittsburgh. Typical Communication System Digital Modulation David Tipper Associate Professor Department of Information Science and Telecommunications University of Pittsburgh http://www.tele.pitt.edu/tipper.html Typical Communication System Source

More information

Positive Feedback and Oscillators

Positive Feedback and Oscillators Physics 3330 Experiment #6 Fall 1999 Positive Feedback and Oscillators Purpose In this experiment we will study how spontaneous oscillations may be caused by positive feedback. You will construct an active

More information

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor) Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor) Concept: circuits Time: 30 m SW Interface: 750 Windows file: RLC.SWS EQUIPMENT NEEDED Science Workshop Interface Power Amplifier (2) Voltage

More information

Analog and Digital Signals, Time and Frequency Representation of Signals

Analog and Digital Signals, Time and Frequency Representation of Signals 1 Analog and Digital Signals, Time and Frequency Representation of Signals Required reading: Garcia 3.1, 3.2 CSE 3213, Fall 2010 Instructor: N. Vlajic 2 Data vs. Signal Analog vs. Digital Analog Signals

More information

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal.

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal. Many receivers must be capable of handling a very wide range of signal powers at the input while still producing the correct output. This must be done in the presence of noise and interference which occasionally

More information

Filter Comparison. Match #1: Analog vs. Digital Filters

Filter Comparison. Match #1: Analog vs. Digital Filters CHAPTER 21 Filter Comparison Decisions, decisions, decisions! With all these filters to choose from, how do you know which to use? This chapter is a head-to-head competition between filters; we'll select

More information

Electrical Resonance

Electrical Resonance Electrical Resonance (R-L-C series circuit) APPARATUS 1. R-L-C Circuit board 2. Signal generator 3. Oscilloscope Tektronix TDS1002 with two sets of leads (see Introduction to the Oscilloscope ) INTRODUCTION

More information

Alternating-Current Circuits

Alternating-Current Circuits hapter 1 Alternating-urrent ircuits 1.1 A Sources... 1-1. Simple A circuits... 1-3 1..1 Purely esistive load... 1-3 1.. Purely Inductive oad... 1-5 1..3 Purely apacitive oad... 1-7 1.3 The Series ircuit...

More information

Matlab GUI for WFB spectral analysis

Matlab GUI for WFB spectral analysis Matlab GUI for WFB spectral analysis Jan Nováček Department of Radio Engineering K13137, CTU FEE Prague Abstract In the case of the sound signals analysis we usually use logarithmic scale on the frequency

More information

Lecture - 4 Diode Rectifier Circuits

Lecture - 4 Diode Rectifier Circuits Basic Electronics (Module 1 Semiconductor Diodes) Dr. Chitralekha Mahanta Department of Electronics and Communication Engineering Indian Institute of Technology, Guwahati Lecture - 4 Diode Rectifier Circuits

More information

QAM Demodulation. Performance Conclusion. o o o o o. (Nyquist shaping, Clock & Carrier Recovery, AGC, Adaptive Equaliser) o o. Wireless Communications

QAM Demodulation. Performance Conclusion. o o o o o. (Nyquist shaping, Clock & Carrier Recovery, AGC, Adaptive Equaliser) o o. Wireless Communications 0 QAM Demodulation o o o o o Application area What is QAM? What are QAM Demodulation Functions? General block diagram of QAM demodulator Explanation of the main function (Nyquist shaping, Clock & Carrier

More information

L and C connected together. To be able: To analyse some basic circuits.

L and C connected together. To be able: To analyse some basic circuits. circuits: Sinusoidal Voltages and urrents Aims: To appreciate: Similarities between oscillation in circuit and mechanical pendulum. Role of energy loss mechanisms in damping. Why we study sinusoidal signals

More information

See Horenstein 4.3 and 4.4

See Horenstein 4.3 and 4.4 EE 462: Laboratory # 4 DC Power Supply Circuits Using Diodes by Drs. A.V. Radun and K.D. Donohue (2/14/07) Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 Updated

More information

San José State University Department of Electrical Engineering EE 112, Linear Systems, Spring 2010

San José State University Department of Electrical Engineering EE 112, Linear Systems, Spring 2010 San José State University Department of Electrical Engineering EE 112, Linear Systems, Spring 2010 Instructor: Robert H. Morelos-Zaragoza Office Location: ENGR 373 Telephone: (408) 924-3879 Email: robert.morelos-zaragoza@sjsu.edu

More information

6.025J Medical Device Design Lecture 3: Analog-to-Digital Conversion Prof. Joel L. Dawson

6.025J Medical Device Design Lecture 3: Analog-to-Digital Conversion Prof. Joel L. Dawson Let s go back briefly to lecture 1, and look at where ADC s and DAC s fit into our overall picture. I m going in a little extra detail now since this is our eighth lecture on electronics and we are more

More information