ECE 45 Homework 2. t x(τ)dτ. Problem 2.2 Find the Bode plot (magnitude and phase) and label all critical points of the transfer function

Similar documents
Lab 5 Linear Predictive Coding

Course Web site:

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING SEMESTER 2 EXAMINATION 2016/2017

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

Problem Set #1 Problem Set Due: Friday, April 12

EE 261 The Fourier Transform and its Applications Fall 2007 Problem Set Two Due Wednesday, October 10

Problem Weight Total 100

with - < n < +. There are two types of approximations associated with the sampling process. finite precision of the ADC finite sampling frequency.

EE 200 Problem Set 3 Cover Sheet Fall 2015

Digital Image and Fourier Transform

ECE438 - Laboratory 1: Discrete and Continuous-Time Signals

4.4 The FFT and MATLAB

Fourier Transforms 1D

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2018 Lab #5: Sampling: A/D and D/A & Aliasing

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2016 Lab #6: Sampling: A/D and D/A & Aliasing

Audio Processing Exercise

Introduction to Signal Processing 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

Why Engineers Ignore Cable Loss

The following exercises illustrate the execution of collaborative simulations in J-DSP. The exercises namely a

DATA COMPRESSION USING THE FFT

USING MATLAB CODE FOR RADAR SIGNAL PROCESSING. EEC 134B Winter 2016 Amanda Williams Team Hertz

MULTISIM DEMO 9.5: 60 HZ ACTIVE NOTCH FILTER

Hewlett Packard 3577A 5Hz MHz Network Analyzer Specifications SOURCE

ECGR 6264 RF Design Midterm Spring 2005

Signals and Systems. Spring Room 324, Geology Palace, ,

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Robert Alexandru Dobre, Cristian Negrescu

Signal and Image Analysis. Two examples of the type of problems that arise:

Sensors, Measurement systems Signal processing and Inverse problems Exercises

Lecture 1: What we hear when we hear music

Voice Controlled Car System

Audio-Based Video Editing with Two-Channel Microphone

Problem Weight Score Total 100

Channel calculation with a Calculation Project

CHAPTER 3 SEPARATION OF CONDUCTED EMI

Laboratory Assignment 3. Digital Music Synthesis: Beethoven s Fifth Symphony Using MATLAB

Multirate Signal Processing: Graphical Representation & Comparison of Decimation & Interpolation Identities using MATLAB

10:15-11 am Digital signal processing

Experiment 2: Sampling and Quantization

Fundamentals of DSP Chap. 1: Introduction

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

Embedded Signal Processing with the Micro Signal Architecture

ELEC 310 Digital Signal Processing

Math and Music: The Science of Sound

Spectrum Analyser Basics

Upgrading E-learning of basic measurement algorithms based on DSP and MATLAB Web Server. Milos Sedlacek 1, Ondrej Tomiska 2

EE-217 Final Project The Hunt for Noise (and All Things Audible)

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

Using Multiple DMs for Increased Spatial Frequency Response

Homework 2 Key-finding algorithm

Analysis of WFS Measurements from first half of 2004

UNIVERSITY OF BAHRAIN COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

Handout 1 - Introduction to plots in Matlab 7

EVALUATION OF SIGNAL PROCESSING METHODS FOR SPEECH ENHANCEMENT MAHIKA DUBEY THESIS

Fourier Integral Representations Basic Formulas and facts

King Fahd University of Petroleum and Minerals Electrical Engineering Department 1. Homework 5 - SOLUTION KEY

CURIE Day 3: Frequency Domain Images

SigPlay User s Guide

ECE-320 Lab 5: Modeling and Controlling a Pendulum

A Novel Approach towards Video Compression for Mobile Internet using Transform Domain Technique

Signal Processing with Wavelets.

Lab P-6: Synthesis of Sinusoidal Signals A Music Illusion. A k cos.! k t C k / (1)

Appendix D. UW DigiScope User s Manual. Willis J. Tompkins and Annie Foong

ni.com Digital Signal Processing for Every Application

Getting Started with the LabVIEW Sound and Vibration Toolkit

Discrete-time equivalent systems example from matlab: the c2d command

Embedded System Hardware

The Effect of Plate Deformable Mirror Actuator Grid Misalignment on the Compensation of Kolmogorov Turbulence

Design of a Speaker Recognition Code using MATLAB

EE 350. Continuous-Time Linear Systems. Recitation 2. 1

Lecture 18: Exam Review

Lecture 3, Opamps. Operational amplifiers, high-gain, high-speed

Linear Time Invariant (LTI) Systems

A NEW LOOK AT FREQUENCY RESOLUTION IN POWER SPECTRAL DENSITY ESTIMATION. Sudeshna Pal, Soosan Beheshti

Figure 1: Feature Vector Sequence Generator block diagram.

From Fourier Series to Analysis of Non-stationary Signals - X

E E Introduction to Wavelets & Filter Banks Spring Semester 2009

homework solutions for: Homework #4: Signal-to-Noise Ratio Estimation submitted to: Dr. Joseph Picone ECE 8993 Fundamentals of Speech Recognition

Recommended Operations

Swept-tuned spectrum analyzer. Gianfranco Miele, Ph.D

Speech and Speaker Recognition for the Command of an Industrial Robot

Extraction Methods of Watermarks from Linearly-Distorted Images to Maximize Signal-to-Noise Ratio. Brandon Migdal. Advisors: Carl Salvaggio

Design of Speech Signal Analysis and Processing System. Based on Matlab Gateway

Analyze Frequency Response (Bode Plots) with R&S Oscilloscopes Application Note

Area-Efficient Decimation Filter with 50/60 Hz Power-Line Noise Suppression for ΔΣ A/D Converters

Measurement of Acoustic Properties of Rooms Using Audio Analyzer R&S UPV Application Note

ENGINEERING COMMITTEE

Experiment 13 Sampling and reconstruction

Book: Fundamentals of Music Processing. Audio Features. Book: Fundamentals of Music Processing. Book: Fundamentals of Music Processing

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

Adaptive Resampling - Transforming From the Time to the Angle Domain

NENS 230 Assignment #2 Data Import, Manipulation, and Basic Plotting

Investigation of Digital Signal Processing of High-speed DACs Signals for Settling Time Testing

MAX11503 BUFFER. Σ +6dB BUFFER GND *REMOVE AND SHORT FOR DC-COUPLED OPERATION

Pole Zero Correction using OBSPY and PSN Data

Mixer Conversion Loss

Reduced complexity MPEG2 video post-processing for HD display

DHANALAKSHMI COLLEGE OF ENGINEERING Tambaram, Chennai

Hello, welcome to the course on Digital Image Processing.

A New Method for Processing Impact Excited Continuous-Scan Laser. Doppler Vibrometer Measurements

Transcription:

UC San Diego Spring 2018 ECE 45 Homework 2 Problem 2.1 Are the following systems linear? Are they time invariant? (a) x(t) [ System (a)] 2x(t 3) (b) x(t) [ System (b)] x(t)+t (c) x(t) [ System (c)] (x(t)+1) 2 (d) x(t) [ System (d)] cos(x(t)) (e) x(t) [ System (e)] (f) x(t) [ System (f)] t. t x(τ)dτ i.e. the term on the right is the output when the input isx(t). Plot the output, in each case, when { 1 if0 t 1 x(t) = 0 otherwise. Problem 2.2 Find the Bode plot (magnitude and phase) and label all critical points of the transfer function H(ω) = 225(ω2 2500jω 10 6 )(1+10 6 jω) 9 ( ω 2 20000jω 10 8). (25+5jω) 9 3 MATLAB: Include MATLAB plots of the magnitude and angle of this function on the same scale. How does the Bode plot approximation compare to the actual function? Tips: logspace(a,b,n) generates n points between decades 10 a and 10 b. semilogx(x,y) plotsy versusxwith a log scale on thexaxis. log10(x) returns log 10 (x), whereas log(x) returns the natural log. Problem 2.3 Are the following functions periodic? If so, find the period and fundamental frequency. (a) f 1 (t) = cos 2 (10t) (b) f 2 (t) = x(t n), wherex(t) = t for0 t < 1 and x(t) = 0 otherwise. (c) f 3 (t) = tan(t) (d) f 4 (t) = cos(t)+cos(πt) Please report any typos/errors to j2connelly@ucsd.edu

Problem 2.4 SupposeH(ω) in the Bode Plot given below is the transfer function of an LTI system. DetermineH(ω), assuming the plot uses the linear approximation techniques from class, and use the approximations from the Bode plot to determine the output of the system when the input is 20 log H(ω) 10 1 1 10 10 2 10 3 10 4 10 5 10 6 10 7 40 db / decade Slope = 0 20 db / decade Slope = 0 (a) x 1 (t) = cos(0.1t) (b) x 2 (t) = cos(8t) 60 20 db / decade 40 db / decade (c) x 3 (t) = cos(30t) (d) x 4 (t) = sin(2000t) (e) x 5 (t) = cos(50000t) H(ω) 90 o 10 1 1 10 10 2 10 3 10 4 10 5 10 6 10 7 Problem 2.5 Supposef(t) is a periodic function with period T = 2 and Fourier series components F n = 1 2n 2 for all integersn 0 and F 0 = 1. f(t) is the input to an LTI system with transfer function H(ω) = cos(ω)+jsin(ω). Find the output, y(t), of the system in terms of only real numbers (all imaginary components should cancel).

Problem 2.6 Find the Fourier series componentsf n off(t) = sin 4 (t). Problem 2.7 Determine the Fourier series coefficientsf n and find the average power in a period of the function: x(t 4n) where x(t) = { 1 0 t < 2 2 2 t < 4 Problem 2.8 Find the Fourier series components off(t) andg(t) and writef(t) andg(t) as purely real sums of sine and/or cosine functions, where f(t) 1 g(t) 4 1 1/2 1/2 4 Hint: After calculating the components off(t), use the properties to find the components ofg(t). Problem 2.9 Find the Fourier series components of f(t). Using the properties of the Fourier series, find the Fourier series coefficients ofg(t), where x(t) = f(t) = 2+ { t 2 when0 t < 4 0 otherwise x(t 4n) and g(t) = and y(t) = Hint: Writex(t) in terms ofy(t) and writef(t) in terms ofg(t). y(t 4n) { t 2 /4 when 2 t < 2 0 otherwise Problem 2.10 Supposef(t) is the input to an LTI system with transfer functionh(ω), where ( ω 2 f(t) = sin(t) and H(ω) = 1 4 2π) Find the outputy(t) and write it as a purely real sum of sines and/or cosines.

MATLAB Problem 3 In this problem, I am providing you with four noisy vectors of length N = 11613. Embedded in one of these vectors is a famous quote from a former politician. Your goal will be to determine which of these four vectors contains the audio signal (and determine which three are purely noise) and decode the audio signal. Place the files one.mat,, four.mat in your MATLAB directory. Run the commands load one.mat;, load four.mat; to load the vectors. Declare variables F s = 11025; and t = (0 : N 1)/F s ; (F s is the frequency the audio message was sampled at, and t is an array of time (in seconds) you can use to plot. The sampling frequency essentially tells us that all frequencies present in the signal are at most Fs. We will learn more about this later) 2 Try plotting one, two, three, and four and running sound(one,f s );,, sound(four,f s ); (warning the sound will be unpleasant). You will likely be unable to determine which signal contains the message by examining these signals in the time domain. Fortunately for us, the noise I used only has frequencies outside of the range of frequencies in the audio clip. So while the signals are garbled in the time domain, we may be able to decipher some information in the frequency domain. Try plotting the magnitude of each signal in the frequency domain. To do this, run the following commands: f = ( F s /2 : F s /(N 1) : F s /2); (this creates a length-n array whose entries range from Fs to Fs 2 2 One=fft(one); and increment by Fs N 1 ) (this creates an array of lengthn that representsone in the frequency domain) plot(f, abs(fftshift(one))); If they still all look similar to you, try plotting the logarithm of the absolute value of the magnitude of the signal in the frequency domain. plot(f, log(abs(fftshift(one)))); By doing this with all four signals, you should notice that one of the signals contains frequency components that the other three do not. Once you have identified the signal with the audio embedded in it, you will need to filter out the noise. To do this, we can use an ideal high, low, or band-pass filter, and we can work entirely in the frequency domain. Let X denote the frequency domain array (i.e. X = fft(x)) of the signal with the audio embedded in it. I have provided you with a function for an ideal band-pass filter (HW2 Filter.m), which you can use for filtering by doing something like: Z = X. HW2 Filter(f,A,B); You will need to experiment with the values ofaand B. Alternatively, you can figure out another way to filter out the noise, if you d like.

Finally, once you have filtered out the noise in the frequency domain, you need to convertz back into the time domain. You can do this by taking: z = real(ifft(z)); sound(z,f s ); If you implemented the filtering correctly, you should hear the audio. Submit the following: which signal has the audio embedded in it the contents of audio message a plot of the magnitude frequency domain representation of the unfiltered signal (with proper labeling, of course), and a plot of the magnitude of the frequency domain representation of the filtered audio message.