ECE 2713 Homework Matlab code:

Size: px
Start display at page:

Download "ECE 2713 Homework Matlab code:"

Transcription

1 ECE 7 Homework 7 Spring 8 Dr. Havlicek. Matlab code: P - Create and plot the signal x_[n] as a function of n. - Compute the DFT X_[k]. Plot the magnitude and phase as functions of k. - Plot the DFT magnitude as a function of the matlab array index. - Plot the DFT magnitude as a function of the discrete radian frequency w. - Compute and plot the IDFT. n = :7; time variable xn = [ ]; our 8-point signal Xk = fft(xn); compute the DFT Xkmag = abs(xk); magnitude of the DFT Xkarg = angle(xk); phase of the DFT plot the signal figure(); stem(n,xn); axis([ 7.]); title( Original Signal ); xlabel( n ); ylabel( x_[n] ); plot DFT magnitude and phase as functions of k k = :7; frequency index figure(); stem(k,xkmag); ylim([ 6]); title( DFT Magnitude ); xlabel( k ); ylabel( X_[k] ); figure(); stem(k,xkarg); title( DFT Phase ); xlabel( k ); ylabel( arg(x_[k]) );

2 plot DFT magnitude as a function of Matlab index Matlab_idx = [:8]; Matlab index figure(); stem(matlab_idx,xkmag); ylim([ 6]); title( DFT Magnitude ); xlabel( Matlab index ); ylabel( X_[index] ); plot DFT magnitude as a function of discrete frequency (radians per sample) w = [:*pi/8:7**pi/8]; discrete frequency figure(); stem(w,xkmag); ylim([ 6]); title( DFT Magnitude ); ylim([ 6]); xlabel( discrete radian frequency \omega ); ylabel( X_[\omega] ); Compute and plot the IDFT xn = ifft(xk); figure(6); stem(n,xn); axis([ 7.]); title( IDFT ); xlabel( n ); ylabel( IDFT );. Original Signal x [n]. 6 7 n

3 6 DFT Magnitude X [k] 6 7 k DFT Phase arg(x [k]) 6 7 k

4 6 DFT Magnitude X [index] Matlab index 6 DFT Magnitude X [ω] 6 discrete radian frequency ω

5 . IDFT IDFT. 6 7 n. Matlab code: P - Compute the centered DFT of x_[n]. - Plot the centered magnitude and phase as function of - the discrete radian frequency w, - the discrete hertzian frequency f. - Invert the DFT and plot. n = :7; time variable xn = [ ]; our 8-point signal Xk = fftshift(fft(xn)); compute the centered DFT Xkmag = abs(xk); magnitude of the centered DFT Xkarg = angle(xk); phase of the centered DFT plot centered DFT magnitude & phase as functions of radian freq w = [-**pi/8:*pi/8:**pi/8]; radian discrete freq figure(); stem(w,xkmag); ylim([ 6]); title( Centered DFT Magnitude ); xlabel( discrete radian frequency \omega ); ylabel( X_[\omega] ); figure(); stem(w,xkarg);

6 title( Centered DFT Phase ); xlabel( discrete radian frequency \omega ); ylabel( arg(x_[\omega]) ); plot centered DFT magnitude & phase as functions of Hertzian freq f = [-.:/8:/8]; Hertzian discrete freq figure(); stem(f,xkmag); ylim([ 6]); title( Centered DFT Magnitude ); xlabel( discrete Hertzian frequency f ); ylabel( X_[f] ); figure(); stem(f,xkarg); title( Centered DFT Phase ); xlabel( discrete Hertzian frequency f ); ylabel( arg(x_[f]) ); Compute and plot the IDFT xn = ifft(ifftshift(xk)); figure(); stem(n,xn); axis([ 7.]); title( IDFT ); xlabel( n ); ylabel( IDFT ); 6 Centered DFT Magnitude X [ω] discrete radian frequency ω 6

7 Centered DFT Phase arg(x [ω]) discrete radian frequency ω 6 Centered DFT Magnitude X [f] discrete Hertzian frequency f 7

8 Centered DFT Phase arg(x [f]) discrete Hertzian frequency f. IDFT IDFT. 6 7 n 8

9 . Matlab code: P Plot the centered DFT magnitude of x_[n] using normalized radian frequency. xn = [ ]; our 8-point signal Xk = fftshift(fft(xn)); compute the centered DFT Xkmag = abs(xk); magnitude of the centered DFT Xkarg = angle(xk); phase of the centered DFT w = [-**pi/8:*pi/8:**pi/8]; figure(); stem(w/pi,xkmag); axis([- 6]); title( Centered DFT Magnitude ); xlabel( \omega/\pi ); ylabel( X_[\omega/\pi] ); radian discrete freq 6 Centered DFT Magnitude X [ω/π] ω/π 9

10 . (a) Matlab code: Pa Show that the DFT is given by samples of the DTFT. - plot the DTFT magnitude of xhat from -pi to pi. - plot the centered DFT magnitude of x_[n] on the same graph. -plot the DTFT phase of xhat from -pi to pi. - plot the centered DFT phase of x_[n] on the same graph. Frequency vector for plotting the DTFT. Use points. w = linspace(-pi,pi,); The DTFT was computed analytically Xhat = sin(.*w)./sin(w/).* exp(-*j*w); Xhatmag = abs(xhat); Xhatarg = angle(xhat); Now compute the 8-point DFT xn = [ ]; our 8-point signal k = -:; frequency index for the centered DFT Xk = fftshift(fft(xn)); Xkmag = abs(xk); Xkarg = angle(xk); figure(); plot(w,xhatmag, -b ); plot the DTFT magnitude axis([-pi pi 6]); hold on; makes the next plot come out on the same graph plot(k**pi/8,xkmag, ro ); plot the centered DFT magnitude hold off; using a symbol, but no line and no stem. title( Magnitude of DTFT and centered 8-pt DFT ); xlabel( \omega, FontSize,); ylabel( $ \widehat X_(e^{j\omega}) $, $ X_[\omega] $,... Interpreter, latex, FontSize,); legend( DTFT, DFT ); figure(); plot(w,xhatarg, -b ); plot the DTFT phase axis([-pi pi - ]); hold on; plot(k**pi/8,xkarg, ro ); plot the centered DFT phase

11 hold off; title( Phase of DTFT and centered 8-pt DFT ); xlabel( \omega, FontSize,); ylabel( $\arg\widehat X_(e^{j\omega})$, $\arg X_[\omega]$,... Interpreter, latex, FontSize,); legend( DTFT, DFT );

12 6 Magnitude of DTFT and centered 8 pt DFT DTFT DFT X(e jω ), X[ω] ω Phase of DTFT and centered 8 pt DFT DTFT DFT arg X(e jω ), argx[ω] ω

13 (b) Matlab code: Pb Change the length of x_[n] to N=6. - plot the DTFT magnitude of xhat from -pi to pi. - plot the centered DFT magnitude of x_[n] on the same graph. -plot the DTFT phase of xhat from -pi to pi. - plot the centered DFT phase of x_[n] on the same graph. Frequency vector for plotting the DTFT. Use points. w = linspace(-pi,pi,); The DTFT was computed analytically Xhat = sin(.*w)./sin(w/).* exp(-*j*w); Xhatmag = abs(xhat); Xhatarg = angle(xhat); Now compute the 6-point DFT xn = [ ]; 6-point signal k = -8:7; frequency index for the centered DFT Xk = fftshift(fft(xn)); Xkmag = abs(xk); Xkarg = angle(xk); figure(); plot(w,xhatmag, -b ); plot the DTFT magnitude axis([-pi pi 6]); hold on; makes the next plot come out on the same graph plot(k**pi/6,xkmag, ro ); plot the centered DFT magnitude hold off; using a symbol, but no line and no stem. title( Magnitude of DTFT and centered 6-pt DFT ); xlabel( \omega, FontSize,); ylabel( $ \widehat X_(e^{j\omega}) $, $ X_[\omega] $,... Interpreter, latex, FontSize,); legend( DTFT, DFT ); figure(); plot(w,xhatarg, -b ); axis([-pi pi - ]); hold on; plot the DTFT phase

14 plot(k**pi/6,xkarg, ro ); plot the centered DFT phase hold off; title( Phase of DTFT and centered 6-pt DFT ); xlabel( \omega, FontSize,); ylabel( $\arg\widehat X_(e^{j\omega})$, $\arg X_[\omega]$,... Interpreter, latex, FontSize,); legend( DTFT, DFT ); 6 Magnitude of DTFT and centered 6 pt DFT DTFT DFT X(e jω ), X[ω] ω

15 Phase of DTFT and centered 6 pt DFT DTFT DFT arg X(e jω ), argx[ω] ω

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM Spring 2018 What to Turn In: ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM Dr. Havlicek Submit your solution for this assignment electronically on Canvas by uploading a file to ECE-2713-001 > Assignments

More information

ECE 3793 Matlab Project 4

ECE 3793 Matlab Project 4 ECE 3793 Matlab Project 4 Spring 2017 Dr. Havlicek DUE: 5/3/2017, 11:59 PM What to Turn In: Make one file that contains your solution for this assignment. It can be an MS WORD file or a PDF file. For Problem

More information

ECE 2713 Design Project Solution

ECE 2713 Design Project Solution ECE 2713 Design Project Solution Spring 218 Dr. Havlicek 1. (a) Matlab code: ---------------------------------------------------------- P1a Make a 2 second digital audio signal that contains a pure cosine

More information

Digital Signal Processing Fourier Analysis of Continuous-Time Signals with the Discrete Fourier Transform

Digital Signal Processing Fourier Analysis of Continuous-Time Signals with the Discrete Fourier Transform Digital Signal Processing Fourier Analysis of Continuous-Time Signals with the Discrete Fourier Transform D. Richard Brown III D. Richard Brown III 1 / 11 Fourier Analysis of CT Signals with the DFT Scenario:

More information

Filters. Signals are sequences of numbers. Simple algebraic operations on signals can perform useful functions: shifting multiplication addition

Filters. Signals are sequences of numbers. Simple algebraic operations on signals can perform useful functions: shifting multiplication addition Filters Signals are sequences of numbers. Simple algebraic operations on signals can perform useful functions: shifting multiplication addition Simple Example... Smooth points to better reveal trend X

More information

5650 chapter4. November 6, 2015

5650 chapter4. November 6, 2015 5650 chapter4 November 6, 2015 Contents Sampling Theory 2 Starting Point............................................. 2 Lowpass Sampling Theorem..................................... 2 Principle Alias Frequency..................................

More information

Week 2: Plotting in Matlab APPM 2460

Week 2: Plotting in Matlab APPM 2460 Week 2: Plotting in Matlab APPM 2460 1 Introduction Matlab is great at crunching numbers, and one of the fundamental ways that we understand the output of this number-crunching is through visualization,

More information

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS INTRODUCTION The objective of this lab is to explore many issues involved in sampling and reconstructing signals, including analysis of the frequency

More information

Signal Processing. Introduction

Signal Processing. Introduction Signal Processing 0 Introduction One of the premiere uses of MATLAB is in the analysis of signal processing and control systems. In this chapter we consider signal processing. The final chapter of the

More information

ECE503 Homework Assignment Number 8 Solution

ECE503 Homework Assignment Number 8 Solution ECE53 Homework Assignment Number 8 Solution 1. 3 points. Recall that an analog integrator has transfer function H a (s) = 1 s. Use the bilinear transform to find the digital transfer function G(z) from

More information

Phase demodulation using the Hilbert transform in the frequency domain

Phase demodulation using the Hilbert transform in the frequency domain Phase demodulation using the Hilbert transform in the frequency domain Author: Gareth Forbes Created: 3/11/9 Revision: The general idea A phase modulated signal is a type of signal which contains information

More information

Phase demodulation using the Hilbert transform in the frequency domain

Phase demodulation using the Hilbert transform in the frequency domain Phase demodulation using the Hilbert transform in the frequency domain Author: Gareth Forbes Created: 3/11/9 Revised: 7/1/1 Revision: 1 The general idea A phase modulated signal is a type of signal which

More information

Lecture 3, Multirate Signal Processing

Lecture 3, Multirate Signal Processing Lecture 3, Multirate Signal Processing Frequency Response If we have coefficients of an Finite Impulse Response (FIR) filter h, or in general the impulse response, its frequency response becomes (using

More information

ECE 4213/5213 Homework 10

ECE 4213/5213 Homework 10 Fall 2017 ECE 4213/5213 Homework 10 Dr. Havlicek Work the Projects and Questions in Chapter 7 of the course laboratory manual. For your report, use the file LABEX7.doc from the course web site. Work these

More information

Mathematical Operations on Basic Discrete Time Signals with MATLAB Programming

Mathematical Operations on Basic Discrete Time Signals with MATLAB Programming Mathematical Operations on Basic Discrete Time Signals with MATLAB Programming N. D. Narkhede 1, Dr. J. N. Salunke 2, V. N. Shah 3 1. Associate Professor, J. T. Mahajan college of Engineering, Faizpur,

More information

ELT COMMUNICATION THEORY

ELT COMMUNICATION THEORY ELT 41307 COMMUNICATION THEORY Matlab Exercise #1 Sampling, Fourier transform, Spectral illustrations, and Linear filtering 1 SAMPLING The modeled signals and systems in this course are mostly analog (continuous

More information

Lecture 4 Frequency Response of FIR Systems (II)

Lecture 4 Frequency Response of FIR Systems (II) EE3054 Signals and Systems Lecture 4 Frequency Response of FIR Systems (II Yao Wang Polytechnic University Most of the slides included are extracted from lecture presentations prepared by McClellan and

More information

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE) Code: 13A04602 R13 B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 (Common to ECE and EIE) PART A (Compulsory Question) 1 Answer the following: (10 X 02 = 20 Marks)

More information

Problem Set 1 (Solutions are due Mon )

Problem Set 1 (Solutions are due Mon ) ECEN 242 Wireless Electronics for Communication Spring 212 1-23-12 P. Mathys Problem Set 1 (Solutions are due Mon. 1-3-12) 1 Introduction The goals of this problem set are to use Matlab to generate and

More information

Solution Set for Mini-Project #2 on Octave Band Filtering for Audio Signals

Solution Set for Mini-Project #2 on Octave Band Filtering for Audio Signals EE 313 Linear Signals & Systems (Fall 2018) Solution Set for Mini-Project #2 on Octave Band Filtering for Audio Signals Mr. Houshang Salimian and Prof. Brian L. Evans 1- Introduction (5 points) A finite

More information

Project I: Phase Tracking and Baud Timing Correction Systems

Project I: Phase Tracking and Baud Timing Correction Systems Project I: Phase Tracking and Baud Timing Correction Systems ECES 631, Prof. John MacLaren Walsh, Ph. D. 1 Purpose In this lab you will encounter the utility of the fundamental Fourier and z-transform

More information

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 1: DISCRETE TIME SIGNALS IN THE TIME DOMAIN

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 1: DISCRETE TIME SIGNALS IN THE TIME DOMAIN Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 1: DISCRETE TIME SIGNALS IN THE TIME DOMAIN Pusat Pengajian Kejuruteraan Komputer Dan Perhubungan Universiti Malaysia Perlis

More information

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu Concordia University Discrete-Time Signal Processing Lab Manual (ELEC442) Course Instructor: Dr. Wei-Ping Zhu Fall 2012 Lab 1: Linear Constant Coefficient Difference Equations (LCCDE) Objective In this

More information

Contents. An introduction to MATLAB for new and advanced users

Contents. An introduction to MATLAB for new and advanced users An introduction to MATLAB for new and advanced users (Using Two-Dimensional Plots) Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional

More information

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

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 Purdue University: ECE438 - Digital Signal Processing with Applications 1 ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 1 Introduction

More information

It is the speed and discrete nature of the FFT that allows us to analyze a signal's spectrum with MATLAB.

It is the speed and discrete nature of the FFT that allows us to analyze a signal's spectrum with MATLAB. MATLAB Addendum on Fourier Stuff 1. Getting to know the FFT What is the FFT? FFT = Fast Fourier Transform. The FFT is a faster version of the Discrete Fourier Transform(DFT). The FFT utilizes some clever

More information

22 AIRCRAFT IN WINDS 69

22 AIRCRAFT IN WINDS 69 22 AIRCRAFT IN WINDS 69 22 Aircraft in Winds This problem builds on the previous one: you will use the same wind gust spectrum, and study the response of an air vehicle that is being buffeted by it. Here

More information

Basic Signals and Systems

Basic Signals and Systems Chapter 2 Basic Signals and Systems A large part of this chapter is taken from: C.S. Burrus, J.H. McClellan, A.V. Oppenheim, T.W. Parks, R.W. Schafer, and H. W. Schüssler: Computer-based exercises for

More information

Digital Signal Processing

Digital Signal Processing COMP ENG 4TL4: Digital Signal Processing Notes for Lecture #27 Tuesday, November 11, 23 6. SPECTRAL ANALYSIS AND ESTIMATION 6.1 Introduction to Spectral Analysis and Estimation The discrete-time Fourier

More information

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises Digital Video and Audio Processing Winter term 2002/ 2003 Computer-based exercises Rudolf Mester Institut für Angewandte Physik Johann Wolfgang Goethe-Universität Frankfurt am Main 6th November 2002 Chapter

More information

ECE 301, final exam of the session of Prof. Chih-Chun Wang Saturday 10:20am 12:20pm, December 20, 2008, STEW 130,

ECE 301, final exam of the session of Prof. Chih-Chun Wang Saturday 10:20am 12:20pm, December 20, 2008, STEW 130, ECE 301, final exam of the session of Prof. Chih-Chun Wang Saturday 10:20am 12:20pm, December 20, 2008, STEW 130, 1. Enter your name, student ID number, e-mail address, and signature in the space provided

More information

ECE503: Digital Signal Processing Lecture 1

ECE503: Digital Signal Processing Lecture 1 ECE503: Digital Signal Processing Lecture 1 D. Richard Brown III WPI 12-January-2012 WPI D. Richard Brown III 12-January-2012 1 / 56 Lecture 1 Major Topics 1. Administrative details: Course web page. Syllabus

More information

ELECTRONOTES APPLICATION NOTE NO Hanshaw Road Ithaca, NY Nov 7, 2014 MORE CONCERNING NON-FLAT RANDOM FFT

ELECTRONOTES APPLICATION NOTE NO Hanshaw Road Ithaca, NY Nov 7, 2014 MORE CONCERNING NON-FLAT RANDOM FFT ELECTRONOTES APPLICATION NOTE NO. 416 1016 Hanshaw Road Ithaca, NY 14850 Nov 7, 2014 MORE CONCERNING NON-FLAT RANDOM FFT INTRODUCTION A curiosity that has probably long been peripherally noted but which

More information

MATLAB 2-D Plotting. Matlab has many useful plotting options available! We ll review some of them today.

MATLAB 2-D Plotting. Matlab has many useful plotting options available! We ll review some of them today. Class15 MATLAB 2-D Plotting Matlab has many useful plotting options available! We ll review some of them today. help graph2d will display a list of relevant plotting functions. Plot Command Plot command

More information

2.161 Signal Processing: Continuous and Discrete

2.161 Signal Processing: Continuous and Discrete MIT OpenCourseWare http://ocw.mit.edu 2.6 Signal Processing: Continuous and Discrete Fall 28 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. MASSACHUSETTS

More information

Digital Signal Processing PW1 Signals, Correlation functions and Spectra

Digital Signal Processing PW1 Signals, Correlation functions and Spectra Digital Signal Processing PW1 Signals, Correlation functions and Spectra Nathalie Thomas Master SATCOM 018 019 1 Introduction The objectives of this rst practical work are the following ones : 1. to be

More information

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau Imagine we would like to know the precise, instantaneous,

More information

Sampling of Continuous-Time Signals. Reference chapter 4 in Oppenheim and Schafer.

Sampling of Continuous-Time Signals. Reference chapter 4 in Oppenheim and Schafer. Sampling of Continuous-Time Signals Reference chapter 4 in Oppenheim and Schafer. Periodic Sampling of Continuous Signals T = sampling period fs = sampling frequency when expressing frequencies in radians

More information

INTRODUCTION TO MATLAB by. Introduction to Matlab

INTRODUCTION TO MATLAB by. Introduction to Matlab INTRODUCTION TO MATLAB by Mohamed Hussein Lecture 5 Introduction to Matlab More on XY Plotting Other Types of Plotting 3D Plot (XYZ Plotting) More on XY Plotting Other XY plotting commands are axis ([xmin

More information

Log Booklet for EE2 Experiments

Log Booklet for EE2 Experiments Log Booklet for EE2 Experiments Vasil Zlatanov DFT experiment Exercise 1 Code for sinegen.m function y = sinegen(fsamp, fsig, nsamp) tsamp = 1/fsamp; t = 0 : tsamp : (nsamp-1)*tsamp; y = sin(2*pi*fsig*t);

More information

Signal Processing. Naureen Ghani. December 9, 2017

Signal Processing. Naureen Ghani. December 9, 2017 Signal Processing Naureen Ghani December 9, 27 Introduction Signal processing is used to enhance signal components in noisy measurements. It is especially important in analyzing time-series data in neuroscience.

More information

Project 2 - Speech Detection with FIR Filters

Project 2 - Speech Detection with FIR Filters Project 2 - Speech Detection with FIR Filters ECE505, Fall 2015 EECS, University of Tennessee (Due 10/30) 1 Objective The project introduces a practical application where sinusoidal signals are used to

More information

CS3291: Digital Signal Processing

CS3291: Digital Signal Processing CS39 Exam Jan 005 //08 /BMGC University of Manchester Department of Computer Science First Semester Year 3 Examination Paper CS39: Digital Signal Processing Date of Examination: January 005 Answer THREE

More information

Making 2D Plots in Matlab

Making 2D Plots in Matlab Making 2D Plots in Matlab Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@pdx.edu ME 350: Plotting with Matlab Overview Plotting in Matlab Plotting (x, y) data

More information

Digital Signal Processing

Digital Signal Processing Digital Signal Processing Lab 1: FFT, Spectral Leakage, Zero Padding Moslem Amiri, Václav Přenosil Embedded Systems Laboratory Faculty of Informatics, Masaryk University Brno, Czech Republic amiri@mail.muni.cz

More information

Plots Publication Format Figures Multiple. 2D Plots. K. Cooper 1. 1 Department of Mathematics. Washington State University.

Plots Publication Format Figures Multiple. 2D Plots. K. Cooper 1. 1 Department of Mathematics. Washington State University. 2D Plots K. 1 1 Department of Mathematics 2015 Matplotlib The most used plotting API in Python is Matplotlib. Mimics Matlab s plotting capabilities Not identical plot() takes a variable number of arguments...

More information

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity)

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity) Importing Data into MATLAB Change your Current Folder to the folder where your data is located. Import

More information

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

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems. PROBLEM SET 6 Issued: 2/32/19 Due: 3/1/19 Reading: During the past week we discussed change of discrete-time sampling rate, introducing the techniques of decimation and interpolation, which is covered

More information

Final Exam Solutions June 14, 2006

Final Exam Solutions June 14, 2006 Name or 6-Digit Code: PSU Student ID Number: Final Exam Solutions June 14, 2006 ECE 223: Signals & Systems II Dr. McNames Keep your exam flat during the entire exam. If you have to leave the exam temporarily,

More information

ECE 429 / 529 Digital Signal Processing

ECE 429 / 529 Digital Signal Processing ECE 429 / 529 Course Policy & Syllabus R. N. Strickland SYLLABUS ECE 429 / 529 Digital Signal Processing SPRING 2009 I. Introduction DSP is concerned with the digital representation of signals and the

More information

Plot frequency response around the unit circle above the Z-plane.

Plot frequency response around the unit circle above the Z-plane. There s No End to It -- Matlab Code Plots Frequency Response above the Unit Circle Reference [] has some 3D plots of frequency response magnitude above the unit circle in the Z-plane. I liked them enough

More information

Chapter 5 Advanced Plotting

Chapter 5 Advanced Plotting PowerPoint to accompany Introduction to MATLAB for Engineers, Third Edition Chapter 5 Advanced Plotting Copyright 2010. The McGraw-Hill Companies, Inc. This work is only for non-profit use by instructors

More information

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts Instruction Manual for Concept Simulators that accompany the book Signals and Systems by M. J. Roberts March 2004 - All Rights Reserved Table of Contents I. Loading and Running the Simulators II. Continuous-Time

More information

The Formula for Sinusoidal Signals

The Formula for Sinusoidal Signals The Formula for I The general formula for a sinusoidal signal is x(t) =A cos(2pft + f). I A, f, and f are parameters that characterize the sinusoidal sinal. I A - Amplitude: determines the height of the

More information

Fundamentals of Signals and Systems Using the Web and MATLAB Edward W. Kamen Bonnie S Heck Third Edition

Fundamentals of Signals and Systems Using the Web and MATLAB Edward W. Kamen Bonnie S Heck Third Edition Fundamentals of Signals and Systems Using the Web and MATLAB Edward W. Kamen Bonnie S Heck Third Edition Pearson Education Limited Edinburgh Gate Harlow Essex CM JE England and Associated Companies throughout

More information

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM Department of Electrical and Computer Engineering Missouri University of Science and Technology Page 1 Table of Contents Introduction...Page

More information

Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering

Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering Computer Programming ECIV 2303 Chapter 5 Two-Dimensional Plots Instructor: Dr. Talal Skaik Islamic University of Gaza Faculty of Engineering 1 Introduction Plots are a very useful tool for presenting information.

More information

DFT: Discrete Fourier Transform & Linear Signal Processing

DFT: Discrete Fourier Transform & Linear Signal Processing DFT: Discrete Fourier Transform & Linear Signal Processing 2 nd Year Electronics Lab IMPERIAL COLLEGE LONDON Table of Contents Equipment... 2 Aims... 2 Objectives... 2 Recommended Textbooks... 3 Recommended

More information

Laboratory 7: Active Filters

Laboratory 7: Active Filters EGR 224L - Spring 208 7. Introduction Laboratory 7: Active Filters During this lab, you are going to use data files produced by two different low-pass filters to examine MATLAB s ability to predict transfer

More information

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.002 Circuits & Electronics Spring 2005 Lab #2: MOSFET Inverting Amplifiers & FirstOrder Circuits Introduction

More information

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music)

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music) Topic 2 Signal Processing Review (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music) Recording Sound Mechanical Vibration Pressure Waves Motion->Voltage Transducer

More information

Sinusoids and Sinusoidal Correlation

Sinusoids and Sinusoidal Correlation Laboratory 3 May 24, 2002, Release v3.0 EECS 206 Laboratory 3 Sinusoids and Sinusoidal Correlation 3.1 Introduction Sinusoids are important signals. Part of their importance comes from their prevalence

More information

EECS 216 Winter 2008 Lab 2: FM Detector Part I: Intro & Pre-lab Assignment

EECS 216 Winter 2008 Lab 2: FM Detector Part I: Intro & Pre-lab Assignment EECS 216 Winter 2008 Lab 2: Part I: Intro & Pre-lab Assignment c Kim Winick 2008 1 Introduction In the first few weeks of EECS 216, you learned how to determine the response of an LTI system by convolving

More information

AUDIO SIEVING USING SIGNAL FILTERS

AUDIO SIEVING USING SIGNAL FILTERS AUDIO SIEVING USING SIGNAL FILTERS A project under V.6.2 Signals and System Engineering Yatharth Aggarwal Sagar Mayank Chauhan Rajan Table of Contents Introduction... 2 Filters... 4 Butterworth Filter...

More information

George Mason University Signals and Systems I Spring 2016

George Mason University Signals and Systems I Spring 2016 George Mason University Signals and Systems I Spring 2016 Laboratory Project #4 Assigned: Week of March 14, 2016 Due Date: Laboratory Section, Week of April 4, 2016 Report Format and Guidelines for Laboratory

More information

MAE143A Signals & Systems - Homework 9, Winter 2015 due by the end of class Friday March 13, 2015.

MAE143A Signals & Systems - Homework 9, Winter 2015 due by the end of class Friday March 13, 2015. MAEA Signals & Systems - Homework 9, Winter due by the end of class Friday March,. Question Three audio files have been placed on the class website: Waits.wav, WaitsAliased.wav, WaitsDecimated.wav. These

More information

George Mason University ECE 201: Introduction to Signal Analysis Spring 2017

George Mason University ECE 201: Introduction to Signal Analysis Spring 2017 Assigned: March 7, 017 Due Date: Week of April 10, 017 George Mason University ECE 01: Introduction to Signal Analysis Spring 017 Laboratory Project #7 Due Date Your lab report must be submitted on blackboard

More information

MAE143A Signals & Systems - Homework 4, Winter 2014 due by the end of class Thursday February 6, 2014.

MAE143A Signals & Systems - Homework 4, Winter 2014 due by the end of class Thursday February 6, 2014. MAEA Signals & Systems - Homework, Winter due by the of class Thursday February 6,. This test uses matlab to explore the answers to Midterm, which is available on the class website http://oodgeroo.ucsd.edu/

More information

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.

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. PROBLEM SET 5 Issued: 2/4/9 Due: 2/22/9 Reading: During the past week we continued our discussion of the impact of pole/zero locations on frequency response, focusing on allpass systems, minimum and maximum-phase

More information

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEO 401 Digital Signal Processing Prof. Mark Fowler EEO 41 Digital Signal Processing Prof. Mark Fowler Note Set #17.5 MATLAB Examples Reading Assignment: MATLAB Tutorial on Course Webpage 1/24 Folder Navigation Current folder name here Type commands here

More information

DCSP-10: DFT and PSD. Jianfeng Feng. Department of Computer Science Warwick Univ., UK

DCSP-10: DFT and PSD. Jianfeng Feng. Department of Computer Science Warwick Univ., UK DCSP-10: DFT and PSD Jianfeng Feng Department of Computer Science Warwick Univ., UK Jianfeng.feng@warwick.ac.uk http://www.dcs.warwick.ac.uk/~feng/dcsp.html DFT Definition: The discrete Fourier transform

More information

ELEC MatLab Introductory Lab. Performed: Monday January 20 th Submitted: Monday January 27 th 2014

ELEC MatLab Introductory Lab. Performed: Monday January 20 th Submitted: Monday January 27 th 2014 ELEC 1908 MatLab Introductory Lab Performed: Monday January 20 th 2014 Submitted: Monday January 27 th 2014 Performed By Name, Student # Name, Student # Teaching Assistant Svetlana Demptchenko Introduction

More information

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

From Fourier Series to Analysis of Non-stationary Signals - VII From Fourier Series to Analysis of Non-stationary Signals - VII prof. Miroslav Vlcek November 23, 2010 Contents Short Time Fourier Transform 1 Short Time Fourier Transform 2 Contents Short Time Fourier

More information

Engineering Department Professionalism: Graphing Standard

Engineering Department Professionalism: Graphing Standard Engineering Department Professionalism: Graphing Standard Introduction - A big part of an engineer s job is to communicate. This often involves presenting experimental or theoretical results in graphical

More information

MAE143A Signals & Systems - Homework 8, Winter 2013 due by the end of class Tuesday March 5, 2013.

MAE143A Signals & Systems - Homework 8, Winter 2013 due by the end of class Tuesday March 5, 2013. MAE43A Signals & Systems - Homework 8, Winter 3 due by the end of class uesday March 5, 3. Question Measuring frequency responses Before we begin to measure frequency responses, we need a little theory...

More information

ECE503: Digital Filter Design Lecture 9

ECE503: Digital Filter Design Lecture 9 ECE503: Digital Filter Design Lecture 9 D. Richard Brown III WPI 26-March-2012 WPI D. Richard Brown III 26-March-2012 1 / 33 Lecture 9 Topics Within the broad topic of digital filter design, we are going

More information

Fourier Series. Discrete time DTFS. (Periodic signals) Continuous time. Same as one-period of discrete Fourier series

Fourier Series. Discrete time DTFS. (Periodic signals) Continuous time. Same as one-period of discrete Fourier series Chapter 5 Discrete Fourier Transform, DFT and FFT In the previous chapters we learned about Fourier series and the Fourier transform. These representations can be used to both synthesize a variety of continuous

More information

(A) Based on the second-order FRF provided, determine appropriate values for ω n, ζ, and K. ω n =500 rad/s; ζ=0.1; K=0.

(A) Based on the second-order FRF provided, determine appropriate values for ω n, ζ, and K. ω n =500 rad/s; ζ=0.1; K=0. ME35 Homework # Due: 1/1/1 Problem #1 (3%) A co-worker brings you an accelerometer spec sheet with the following frequency response function (FRF):. s G accelerometer = [volt +.1 jω.1 ω m ] (A) Based on

More information

L A B 3 : G E N E R A T I N G S I N U S O I D S

L A B 3 : G E N E R A T I N G S I N U S O I D S L A B 3 : G E N E R A T I N G S I N U S O I D S NAME: DATE OF EXPERIMENT: DATE REPORT SUBMITTED: 1/7 1 THEORY DIGITAL SIGNAL PROCESSING LABORATORY 1.1 GENERATION OF DISCRETE TIME SINUSOIDAL SIGNALS IN

More information

Jawaharlal Nehru Engineering College

Jawaharlal Nehru Engineering College Jawaharlal Nehru Engineering College Laboratory Manual SIGNALS & SYSTEMS For Third Year Students Prepared By: Ms.Sunetra S Suvarna Assistant Professor Author JNEC INSTRU. & CONTROL DEPT., Aurangabad SUBJECT

More information

Experiments #6. Convolution and Linear Time Invariant Systems

Experiments #6. Convolution and Linear Time Invariant Systems Experiments #6 Convolution and Linear Time Invariant Systems 1) Introduction: In this lab we will explain how to use computer programs to perform a convolution operation on continuous time systems and

More information

Laboratory Assignment 4. Fourier Sound Synthesis

Laboratory Assignment 4. Fourier Sound Synthesis Laboratory Assignment 4 Fourier Sound Synthesis PURPOSE This lab investigates how to use a computer to evaluate the Fourier series for periodic signals and to synthesize audio signals from Fourier series

More information

THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA. Department of Electrical and Computer Engineering. ELEC 423 Digital Signal Processing

THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA. Department of Electrical and Computer Engineering. ELEC 423 Digital Signal Processing THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA Department of Electrical and Computer Engineering ELEC 423 Digital Signal Processing Project 2 Due date: November 12 th, 2013 I) Introduction In ELEC

More information

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

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003 SMS045 - DSP Systems in Practice Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003 Lab Purpose This lab will introduce MATLAB as a tool for designing and evaluating digital

More information

Solutions Manual for Digital Signal Processing using Matlab - Second Edition

Solutions Manual for Digital Signal Processing using Matlab - Second Edition Solutios Maual for Digital Sigal Processig usig Matlab - Secod Editio Viay K. Igle 27 2 Solutios Maual for DSP usig Matlab (2d Editio) 26 Chapter 2 Discrete-Time Sigals ad Systems P2.1 Geerate the followig

More information

Lab 4 Fourier Series and the Gibbs Phenomenon

Lab 4 Fourier Series and the Gibbs Phenomenon Lab 4 Fourier Series and the Gibbs Phenomenon EE 235: Continuous-Time Linear Systems Department of Electrical Engineering University of Washington This work 1 was written by Amittai Axelrod, Jayson Bowen,

More information

Digital Signal Processing

Digital Signal Processing COMP ENG 4TL4: Digital Signal Processing Notes for Lecture #29 Wednesday, November 19, 2003 Correlation-based methods of spectral estimation: In the periodogram methods of spectral estimation, a direct

More information

Moving from continuous- to discrete-time

Moving from continuous- to discrete-time Moving from continuous- to discrete-time Sampling ideas Uniform, periodic sampling rate, e.g. CDs at 44.1KHz First we will need to consider periodic signals in order to appreciate how to interpret discrete-time

More information

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters Date: 19. Jul 2018 Pre-Lab: You should read the Pre-Lab section of

More information

Worksheet 5. Matlab Graphics

Worksheet 5. Matlab Graphics Worksheet 5. Matlab Graphics Two dimesional graphics Simple plots can be made like this x=[1.5 2.2 3.1 4.6 5.7 6.3 9.4]; y=[2.3 3.9 4.3 7.2 4.5 6.1 1.1]; plot(x,y) plot can take an additional string argument

More information

CSCD 409 Scientific Programming. Module 6: Plotting (Chpt 5)

CSCD 409 Scientific Programming. Module 6: Plotting (Chpt 5) CSCD 409 Scientific Programming Module 6: Plotting (Chpt 5) 2008-2012, Prentice Hall, Paul Schimpf All rights reserved. No portion of this presentation may be reproduced, in whole or in part, in any form

More information

Electrical & Computer Engineering Technology

Electrical & Computer Engineering Technology Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:

More information

Performing the Spectrogram on the DSP Shield

Performing the Spectrogram on the DSP Shield Performing the Spectrogram on the DSP Shield EE264 Digital Signal Processing Final Report Christopher Ling Department of Electrical Engineering Stanford University Stanford, CA, US x24ling@stanford.edu

More information

Final Exam Practice Questions for Music 421, with Solutions

Final Exam Practice Questions for Music 421, with Solutions Final Exam Practice Questions for Music 4, with Solutions Elementary Fourier Relationships. For the window w = [/,,/ ], what is (a) the dc magnitude of the window transform? + (b) the magnitude at half

More information

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2025 Fall 1999 Lab #7: Frequency Response & Bandpass Filters

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2025 Fall 1999 Lab #7: Frequency Response & Bandpass Filters GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING ECE 2025 Fall 1999 Lab #7: Frequency Response & Bandpass Filters Date: 12 18 Oct 1999 This is the official Lab #7 description;

More information

Lecture 2 Review of Signals and Systems: Part 1. EE4900/EE6720 Digital Communications

Lecture 2 Review of Signals and Systems: Part 1. EE4900/EE6720 Digital Communications EE4900/EE6420: Digital Communications 1 Lecture 2 Review of Signals and Systems: Part 1 Block Diagrams of Communication System Digital Communication System 2 Informatio n (sound, video, text, data, ) Transducer

More information

ECE 5650/4650 MATLAB Project 1

ECE 5650/4650 MATLAB Project 1 This project is to be treated as a take-home exam, meaning each student is to due his/her own work. The project due date is 4:30 PM Tuesday, October 18, 2011. To work the project you will need access to

More information

Short Time Fourier Transform *

Short Time Fourier Transform * OpenStax-CNX module: m10570 1 Short Time Fourier Transform * Ivan Selesnick This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 1.0 1 Short Time Fourier Transform

More information

Laboration Exercises in Digital Signal Processing

Laboration Exercises in Digital Signal Processing Laboration Exercises in Digital Signal Processing Mikael Swartling Department of Electrical and Information Technology Lund Institute of Technology revision 215 Introduction Introduction The traditional

More information

Knowledge Integration Module 2 Fall 2016

Knowledge Integration Module 2 Fall 2016 Knowledge Integration Module 2 Fall 2016 1 Basic Information: The knowledge integration module 2 or KI-2 is a vehicle to help you better grasp the commonality and correlations between concepts covered

More information