LAB # 3 HANDOUT. y(n)=t[x(n)] Discrete systems have different classifications based on the input and output relation:

Similar documents
DSP Laboratory (EELE 4110) Lab#3 Discrete Time Signals

ECE 308 Discrete-Time Signals and Systems

Digital Signal Processing Lecture 4

Discrete-Time Signals and Systems

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 3: DISCRETE TIME SYSTEM IN TIME DOMAIN

ELEN E4810: Digital Signal Processing Topic 2: Time domain

Probability Space. J. McNames Portland State University ECE 538/638 Stochastic Signals Ver

Digital Signal Processing

Digital Signal Processing Module 1 Analysis of Discrete time Linear Time - Invariant Systems

Examples. 2-input, 1-output discrete-time systems: 1-input, 1-output discrete-time systems:

(t ) a 1. (t ).x 1..y 1

EE123 Digital Signal Processing

Module 3. Convolution. Aim

ECE-S Introduction to Digital Signal Processing Lecture 3C Properties of Autocorrelation and Correlation

Lecture 11 FIR Filters

SRI VIDYA COLLEGE OF ENGINEERING AND TECHNOLOGY UNIT 3 RANDOM PROCESS TWO MARK QUESTIONS

BME 50500: Image and Signal Processing in Biomedicine. Lecture 5: Correlation and Power-Spectrum CCNY

Discrete-Time Signals & Systems

EEL3135: Homework #4

Ch 2: Linear Time-Invariant System

EECE 301 Signals & Systems

MMSE System Identification, Gradient Descent, and the Least Mean Squares Algorithm

ELEG 305: Digital Signal Processing

DIGITAL SIGNAL PROCESSING LABORATORY

Linear Convolution Using FFT

The objective of this LabVIEW Mini Project was to understand the following concepts:

EE123 Digital Signal Processing

EE123 Digital Signal Processing

Digital Signal Processing Lecture 3 - Discrete-Time Systems

Properties of LTI Systems

Discrete-Time Systems

Analog vs. discrete signals

Z Transform (Part - II)

EE123 Digital Signal Processing

Properties of the Autocorrelation Function

UNIT 1. SIGNALS AND SYSTEM

Probability and Statistics for Final Year Engineering Students

VU Signal and Image Processing

Lecture 4: FT Pairs, Random Signals and z-transform

EE538 Final Exam Fall 2007 Mon, Dec 10, 8-10 am RHPH 127 Dec. 10, Cover Sheet

Chapter 3 Convolution Representation

ECE 636: Systems identification

Definition. A signal is a sequence of numbers. sequence is also referred to as being in l 1 (Z), or just in l 1. A sequence {x(n)} satisfying

Lecture 19 IIR Filters

信號與系統 Signals and Systems

EEM 409. Random Signals. Problem Set-2: (Power Spectral Density, LTI Systems with Random Inputs) Problem 1: Problem 2:

信號與系統 Signals and Systems

Frequency-Domain C/S of LTI Systems

6.02 Fall 2012 Lecture #10

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

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

MAHALAKSHMI ENGINEERING COLLEGE-TRICHY

INTRODUCTION Noise is present in many situations of daily life for ex: Microphones will record noise and speech. Goal: Reconstruct original signal Wie

ECE 541 Stochastic Signals and Systems Problem Set 11 Solution

DIGITAL SIGNAL PROCESSING LECTURE 1

2. CONVOLUTION. Convolution sum. Response of d.t. LTI systems at a certain input signal

Chap 2. Discrete-Time Signals and Systems

Chapter 2 Time-Domain Representations of LTI Systems

EAS 305 Random Processes Viewgraph 1 of 10. Random Processes

Chapter 3. Discrete-Time Systems

Z-Transform. x (n) Sampler

Gaussian Basics Random Processes Filtering of Random Processes Signal Space Concepts

5. Time-Domain Analysis of Discrete-Time Signals and Systems


Solutions. Number of Problems: 10

CCNY. BME I5100: Biomedical Signal Processing. Stochastic Processes. Lucas C. Parra Biomedical Engineering Department City College of New York

Discrete-time signals and systems

Discrete-Time Gaussian Fourier Transform Pair, and Generating a Random Process with Gaussian PDF and Power Spectrum Mark A.

UCSD ECE 153 Handout #46 Prof. Young-Han Kim Thursday, June 5, Solutions to Homework Set #8 (Prepared by TA Fatemeh Arbabjolfaei)

Solutions: Homework Set # 5

Signals and Systems Chapter 2

5 Kalman filters. 5.1 Scalar Kalman filter. Unit delay Signal model. System model

x(l!) = g(n) k=-oo x(n) * hen) = hen) * x(n)

Multidimensional digital signal processing

Lecture 2 Discrete-Time LTI Systems: Introduction

ECE 438 Exam 2 Solutions, 11/08/2006.

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

Lab 3 & 4. LTI Systems, the Z-Transform, and an Introduction

UCSD ECE153 Handout #40 Prof. Young-Han Kim Thursday, May 29, Homework Set #8 Due: Thursday, June 5, 2011

Econometría 2: Análisis de series de Tiempo

Adaptive Systems Homework Assignment 1

Signals & Systems Handout #4

Linear Stochastic Models. Special Types of Random Processes: AR, MA, and ARMA. Digital Signal Processing

Using MATLAB with the Convolution Method

Introduction to Digital Signal Processing

LECTURES 2-3 : Stochastic Processes, Autocorrelation function. Stationarity.

! Circular Convolution. " Linear convolution with circular convolution. ! Discrete Fourier Transform. " Linear convolution through circular

III. Time Domain Analysis of systems

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007

Laboratory Project 1: Introduction to Random Processes

IV. Covariance Analysis

LAB 6: FIR Filter Design Summer 2011

Stability Condition in Terms of the Pole Locations

Digital Signal Processing, Homework 1, Spring 2013, Prof. C.D. Chung

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

7.17. Determine the z-transform and ROC for the following time signals: Sketch the ROC, poles, and zeros in the z-plane. X(z) = x[n]z n.

ECE534, Spring 2018: Solutions for Problem Set #5

Convolution. Define a mathematical operation on discrete-time signals called convolution, represented by *. Given two discrete-time signals x 1, x 2,

R13 SET - 1

UNIT-2: MULTIPLE RANDOM VARIABLES & OPERATIONS

Transcription:

LAB # HANDOUT. DISCRETE SYSTEMS Mathematically, a discrete-time system (or discrete system for short ) is described as an operator T[.] that takes a sequence x(n) and transforms it into another sequence y(n)(called response). y(n)=t[x(n)] Discrete systems have different classifications based on the input and output relation:. LINEARITY The system is linear if it satisfies superposition principles. x(n) y(n) x(n) y(n) Then for linearity, αx(n) + βx(n) αy(n) + βy(n) A discrete system T[.] is a linear operator L[.] if and only if L[.] satisfies the principle of superposition. y(n)=l[x(n)]. TIME INVARIANCE x(n) x(n-n) y(n) y(n-n) A system which satisfies both of the conditions is called Linear Time-Invariant (LTI) system. The impulse response of an LTI system is given by h(n). x(n) h(n) y(n)

This system can be described as y(n) =x(n)*h(n) Or y(n) x(k )h(n k ) k. STABILITY A system is said to be bounded-input bounded output(bibo) stable if every bounded input produces a bounded output. x(n) < y(n) < An LTI system is BIBO stable if and only if its impulse response is absolutely summable.. CONVOLUTION BIBO stability n h(n) The convolution operation was introduced before to describe the response of an LTI system. Convolution can be evaluated in many different ways. If the sequences are mathematical functions, then we can analytically evaluate for all n to obtain a functional form of y(n). y(n) =x(n)*h(n) or y(n) x(k )h(n k ) k Ex: x(n)={,,7,,-,4, }, - n ; h(n)={,,,,, }, - n 4; Determine the convolution y(n)=x(n)*h(n) Solution: Beginning point (first nonzero sample) of y(n) is given by n= -+(-) =, while the end point (the last nonzero sample) is given by n = +4 = 7. y(n) x(k )h(n k ) and k for n= y()=*4 + * + * + 7* + * + -* + 4* + *= for n=- y(-)= * + * + * + * + 7* + * + -* + 4* + *= 6 for n= y()= * + 7* + * + -* + 4* + *= 4

x(k) 8 6 4 - - - - h(k) - - - - -.5.5.5.5.5 4 h(-k) - - - -.5 - -.5 - -.5 - -.5.5 h(--k) - - -.5 -.5 - -.5 - -.5 - -.5 h(-k) - - - - -.5 - -.5.5.5.5 In matlab >> y=conv(x,h); The convolution function assumes that the two sequences begin at n=.

>> x=[,,7,,-,4,]; >> h=[,,,,,]; >> y=conv(x,h); y = Because of this, we do not use this. We will use: M-file: function [y,ny]=conv_m(x,nx,h,nh) nyb=nx()+nh(); nye=nx(length(x))+nh(length(h)); ny=[nyb:nye]; y=conv(x,h); Command Window: >> x=[,,7,,-,4,]; nx=[-:]; >> h=[,,,,,]; nh=[-:4]; >> [y,ny]=conv_m(x,nx,h,nh) y = ny = Hence, y(n)= { }. CORRELATION and COVARIANCE Correlation is the measure of similarity between two sequences. R X,Y (n, n ) = E[X(n )Y(n )] = Y(l) X( l) crosscorrelation R X (n, n ) = E[X(n )X(n )] = X(l) X( l) autocorrelation 4

Covariance is a measure of how much two random variables change together. C X,Y (n, n ) = R X,Y (n, n ) m X (n )m Y (n ) crosscovariance C X (n, n ) = R X (n, n ) m X (n )m X (n ) autocovariance Correlation coefficient R X,Y(n) ρ X,Y (n) = R X ()R Y () Ex: x(n)={,,7,,-,4, }, - n ; and y(n)= x(n-) + w(n) where w(n) is Gaussian sequence with mean and variance. Crosscorrelation between y(n) and x(n)? R Y,X =? In matlab (command window): % noise sequence x = [,, 7,, -, 4, ]; [y,ny] = sigshift(x,nx,); w = randn(,length(y)); nw = ny; [y,ny] = sigadd(y,ny,w,nw); [x,nx] = sigfold(x,nx); [rxy,nrxy] = conv_m(y,ny,x,nx); nx=[-:]; % given signal x(n) % obtain x(n-) % generate w(n) obtain y(n)=x(n-)+w(n) % obtain x(-n) % cross-correlation subplot(,,);stem(nrxy,rxy) axis([,8,,5]);xlabel('lag variable l') ylabel('rxy');title('crosscorrelation: noise sequence ') % noise sequence x = [,, 7,, -, 4, ]; [y,ny] = sigshift(x,nx,); w = randn(,length(y)); nw = ny; [y,ny] = sigadd(y,ny,w,nw); [x,nx] = sigfold(x,nx); [rxy,nrxy] = conv_m(y,ny,x,nx); nx=[-:]; % given signal x(n) % obtain x(n-) % generate w(n) obtain y(n)=x(n-)+w(n) % obtain x(-n) % cross-correlation subplot(,,);stem(nrxy,rxy) axis([,8,,5]);xlabel('lag variable l') ylabel('rxy');title('crosscorrelation: noise sequence ') 5

Ex=sum(abs(x).^); %power in signals Ey=sum(abs(y).^); rhoxy=rxy/(sqrt(ex*ey)); %correlation coefficeients subplot(,,); stem(nrxy,rhoxy) axis([,8,-,]);xlabel('lag variable l') ylabel('rxy');title('correlation coefficient') EEE4 Lab Handout Also, it should be noted that there is a function called xcorr for sequence correlation computations. >> xcorr(x,y) cross-correlation >> xcorr(x) auto-correlation Also, it should be noted that there is a function called xcov for sequence correlation computations >> xcov(x,y) cross-covariance >> xcov(x) auto-covariance There is a function called corrcoef to find correlation coefficient >> corrcoef(x) correlation coefficient However, the xcorr function can not provide the timing information (as done by conv_m). Because of this, we will use conv_m function. EX: x=ones(,5); % define signal x y=ones(,7); % define signal Y [c,lags]=xcorr(x,x); %finding auto-correlation [c,lags]=xcorr(x,y); %finding cross-correlation figure subplot(,,) stem(lags,c) axis([-8 8 5]) %[Xmin,Xmax,Ymin,Ymax] subplot(,,) stem(lags,c) axis([-8 8 5]) x=[zeros(,5),,zeros(,5)]; % define signal x subplot(4,,), stem(x) y=.75*[zeros(,),x]+.*randn(,7); % define signal Y subplot(4,,), stem(y) [c lags]=xcov(x); %finding auto-covariance subplot(4,,), stem(lags,c) [c lags]=xcov(x,y); %finding cross-covariance subplot(4,,4), stem(lags,c) 6

4. DIFFERENCE EQUATION An LTI system can also be described by a linear constant coefficient difference equation. to solve this equation, we have filter function. y=filter(b,a,x) b=[b b bm]; for x values a=[a a.an]; for y values Ex: y(n) - y(n-) +.9y(n-) = x(n) a) Calculate and plot the impulse response h(n) at n=-. b) Calculate and plot the unit step response s(n) at n=-. c)is the system specified by h(n) stable? Command window: Part a) Part b) Part c) stability h(n) y(n)= bmx(n-m)- aky(n-k) m k a=[,-,.9];b=; x=impseq(,-,);n=[-:]; h=filter(b,a,x); subplot(,,);stem(n,h) axis([-,,-.,.]) title('impulse Response');xlabel('n');ylabel('h(n)') x=stepseq(,-,); s=filter(b,a,x); subplot(,,);stem(n,s) axis([-,,-.5,.5]) title('step Response');xlabel('n');ylabel('s(n)') >>sum(abs(h)) 7