DSP - Chapter 2 - B - Time Domain Analysis

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Time Domain Analysis

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

28

Linear Time-Invariant Systems

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

29
Linear

linearity

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

30

Time Invariance or Shift Invariance

A time shift of the input causes an equal time shift of


the output

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

31
Linear Time-Invariant System

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

32

LTI Systems - 2

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

33
LTI Systems - 3

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

34

LTI Systems - 4

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

35
Convolution Sum

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

36

Two Ways to Calculate Convolution


1. Direct-summation method: As the representation of the output as a
sum of delayed and scaled impulse responses.
2. Flip-and-shift method: As a computational formula for computing y[n]
(“y at time n”) from the entire sequences x and h.
• Form x[k]h[n-k] for -∞<k<+∞ for a fixed n
• Sum overall k to produce y[n]

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

37
Direct-Summation Method

• Input: Sum of Weighted Shifted Impulses

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

38

Using Linearity and Time-Invariance for the Impulses

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

39
Output as Weighted Shifted Impulse Reponses
Sum of weighted shifted impulses → Sum of weighted shifted impulse
responses

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

40

Another Example of Direct Summation Method

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

41
Another Example of Direct Summation Method (contd.)

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

42

Example-Convolution of Two Rectangles

convex1

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

43
Example..(Continued)

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

44

Example-Convolution Of Two Sequences

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

45
EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

46

Flip-and-Shift Method (Finite Length Signals)

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

47
Same Example using the
Flip-and-Shift Method

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

48

Example: Convolution with Unit Step

anUnConv

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

49
Example: Convolution with Pulse
• 𝑥 𝑛 = 𝑢 𝑛 − 𝑢[𝑛 − 𝑁]
• ℎ 𝑛 = 𝑎𝑛 𝑢 𝑛

anUnNConv
EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

50

Properties of Convolution

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

51
Properties of Convolution

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

52

Stability

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

53
Stability

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

54

Stability - Example

unStable

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

55
Causality

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

56

Causality & Stability- Example

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

57
2D Discrete Convolution

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

58

Difference Equation
• For all computationally realizable LTI systems, the input and output
satisfy a difference equation of the form

• This leads to the recurrence formula

• which can be used to compute the “present” output from the present
and M past values of the input and N past values of the output

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

59
First-Order Example
• Consider the difference equation
y[n] =ay[n−1] +x[n]
We can represent this system by the following block diagram:

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

60

Exponential Impulse Response


• With initial rest conditions, the difference Equation has impulse response

y[n] =ay[n−1] +x[n]


h[n] =anu[n]

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

61
Linear Constant-Coefficient Difference(LCCD) Equations

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

62

LTI Systems Characterized by LCCD Equations

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

63
LCCD Equations (Contd.)

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

64

LCCD Equations (Contd.)

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

65
Recursive Computation of Output

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

66

MATLAB Functions for Convolution & Difference Equation


• conv Convolution and polynomial multiplication.
C = conv(A,B)
convolves vectors A and B. The resulting vector is length MAX([LENGTH(A)+LENGTH(B)-
1,LENGTH(A),LENGTH(B)]). If A and B are vectors of polynomial coefficients, convolving
them is equivalent to multiplying the two polynomials.
• filter One-dimensional digital filter.
Y = filter(B,A,X)
filters the data in vector X with the filter described by vectors A and B to create the filtered data
Y. The filter is a "Direct Form II Transposed” implementation of the standard difference
equation:
a(1)*y(n) = b(1)*x(n) + b(2)*x(n-1) + ... + b(nb+1)*x(n-nb)
- a(2)*y(n-1) - ... - a(na+1)*y(n-na)
If a(1) is not equal to 1, the filter normalizes the filter coefficients by a(1).
EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

67
Averaging via filter()
• The averaging operation (FIR filter)
y[n] = (1/7) * Σ x[n-m] m = 0,.., 6
• Implemented with filter()
y = filter(1/7*[1 1 1 1 1 1 1],1,x);
• Recursive IIR filter
y[n] = 0.9y[n-1] + 0.1x[n]
• Implemented with filter()
y = filter(0.1,[1 –0.9],x);
same as:
0.1x[n] = y[n] -0.9y[n-1]

averfilt EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

68

Example of Filtering

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

69
LTI Summary

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

70

Classify the Following Discrete-Time Systems

EE316 - DSP: Chapter 2 - DIscrete Time Signals and Systems

71

You might also like