Docsity

Lecture 11: Linearity, Time-Invariance, and Convolution in ECE-2025, Fall-2004, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
EE-2025 Fall-2004
Lecture 11
Linearity, Time-Invariance
and Convolution
27-Sept-04
9/23/2004
ECE-2025 Spring-04 jMc
2
Info: Web-CT, Lab, HW
Listen to song for Lab #5
Prepare for on-line Pre-Post-Labs
Run MATLAB Debugger for Lab #6
Lab #6: Image Processing
Sampling & Zooming
Interpolation
Needed in Digital Cameras
Quiz #1 grading issues?
Resolve them no later than today.
9/23/2004
ECE-2025 Spring-04 jMc
39/23/2004
ECE-2025 Spring-04 jMc
4
DEBUGGING
“Any Fool” can write code
Debugging is the interesting part
It takes brain power !!!
HOWEVER,
Assume the stupid mistake is the problem
Lecture
pf3
pf4
pf5
pf8

Partial preview of the text

Download Lecture 11: Linearity, Time-Invariance, and Convolution in ECE-2025, Fall-2004 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

EE-

Fall-

Lecture 11Linearity, Time-Invarianceand Convolution27-Sept-

9/23/

ECE-

Spring-

jMc

2

Info: Web-CT, Lab, HW^ ƒ^

Listen to song for Lab

ƒ^

Prepare for on-line Pre-Post-Labs^ ƒ^

Run MATLAB Debugger for Lab #

ƒ^

Lab #6: Image Processing^ ƒ^

Sampling & Zooming ƒ Interpolation^ ƒ^

Needed in Digital Cameras

ƒ^

Quiz #1 grading issues?^ ƒ^

Resolve them no later than today.

9/23/

ECE-

Spring-

jMc^

3

9/23/

ECE-

Spring-

jMc

4

DEBUGGING^ ƒ^

“Any Fool” can write code

ƒ^

Debugging is the interesting part^ ƒ^

It takes brain power !!!

ƒ^

HOWEVER,^ ƒ^

Assume the

stupid

mistake is the problem

Lecture

9/23/

ECE-

Spring-

jMc^

5

READING ASSIGNMENTS^ ƒ^

This Lecture:^ ƒ^

Chapter 5, Sections 5-5 and 5-6^ ƒ^

Section 5-4 will be covered, but not “in depth”

ƒ^

Other Reading:^ ƒ^

Recitation: Ch. 5, Sects 5-6, 5-7 & 5-8^ ƒ^

CONVOLUTION ƒ^ Next Lecture: start Chapter 6

9/23/

ECE-

Spring-

jMc

6

LECTURE OBJECTIVES

ƒ^ BLOCK DIAGRAM REPRESENTATION

ƒ^ Components for Hardware ƒ^ Connect Simple Filters Together to Build MoreComplicated Systems

LTI SYSTEMS

ƒ^

GENERAL PROPERTIES of FILTERSƒ^ ƒ

LINEARITYL ƒƒ TTIME-I

INVARIANCE

ƒ^ ==>

CONVOLUTIONCONVOLUTION

9/23/

ECE-

Spring-

jMc^

7

ƒ^

IMPULSE RESPONSE,^ ƒ^

FIR case: same as

ƒ^

CONVOLUTION^ ƒ^

GENERAL: ƒ GENERAL CLASS of SYSTEMS ƒ LINEAR

and

TIME-INVARIANT

ƒ^

ALL

LTI

systems have

h [

n ] & use convolution

OVERVIEW

] [ ] [ ] [^

nx n h n y^

∗

=

] [ nh } {^ bk

9/23/

ECE-

Spring-

jMc

8

ƒ^

CONCENTRATE on the FILTER (DSP)

ƒ^

DISCRETE-TIME SIGNALS^ ƒ^

FUNCTIONS of

n , the “time index”

ƒ^ INPUT

x [

n ]

ƒ^ OUTPUT

y [

n ]

DIGITAL FILTERING

FILTER

D-to-A

A-to-D x(t)

y(t)

y[n]

x[n]

9/23/

ECE-

Spring-

jMc^

13

FIR IMPULSE RESPONSE^ ƒ^

Convolution = Filter Definition^ ƒ^

Filter Coeffs = Impulse Response

∑^ =

−

=

M k

k^

k n x b n y

0

]

[

] [^

∑^ =

−

=

M k

k^

k n b

n h

0

]

[

] [

9/23/

ECE-

Spring-

jMc

] 4 14

[

] 3

[

] 2

[

] 1

[

][

][

=^

n n n n n n h

MATH FORMULA for h[n]^ ƒ^

Use SHIFTED IMPULSES to write

h

[ n ]

1

n

- 2 0

4

]

[ nh

{^

= k b

9/23/

ECE-

Spring-

jMc^

15

∑^ =

M k

k n x k h n y

] [ ] [ ] [

LTI: Convolution Sum^ ƒƒ^

Output = Convolution of x[n] & h[n]Output = Convolution of x[n] & h[n]^ ƒ^

NOTATION: ƒ Here is the FIR case:

FINITE LIMITS FINITE LIMITS

Same as

b

k

] [ ] [ ] [^

n x n h n y^

∗

=

9/23/

ECE-

Spring-

jMc

16

CONVOLUTION Example

n^

−^1 0

1

2

3

4

5

6

7

x [ n

]^

0

1

1

1

1

1

1

1

...

h [ n

]^

0

1

−^1

2

−^1

1

0

0

0

0

1

1

1

1

1

1

1

1

0

0

−^1

−^1 −

1

−^1 −

1

−^1

−^1

0

0

0

2

2

2

2

2

2

0

0

0

0

−^1 −

1

−^1

−^1

−^1

0

0

0

0

0

1

1

1

1

y [ n

]^

0

1

0

2

1

2

2

2

...

]

[

]

[

] 4

[

] 3

[

] 2

[

] 1

[

]

[

]

[

nu nx

n

n

n

n n

nh

] 4 [] (^4) [

] 3 [] (^3) [

] 2 [] (^2) [

] 1 [] (^1) [

][ ] (^0) [

− − −^ − n x h

nx h

nx h

nx h

nx h

9/23/

ECE-

Spring-

jMc^

17

GENERAL FIR FILTER^ ƒ^

SLIDE a Length-L WINDOW over x[n]

x [ n

]

x [ n-M

]

9/23/

ECE-

Spring-

jMc

18

DCONVDEMO: MATLAB GUI

9/23/

ECE-

Spring-

jMc^

19

] 1 [ ] [ ] [^

−

−

=^

n u n u n y

POP QUIZ^ ƒ^

FIR Filter is “FIRST DIFFERENCE”^ ƒ^

y [ n

] =

x [

n ] -

x [n-1]

ƒ^

INPUT is “UNIT STEP”

ƒ^

Find

y [

n ]

≥^ <

]

[

n^ n

n

u

] [ ] 1 [ ] [ ] [^

n n u n u n y

= −

−

=

9/23/

ECE-

Spring-

jMc

20

HARDWARE STRUCTURES^ ƒ^

INTERNAL STRUCTURE of “FILTER”^ ƒ^

WHAT COMPONENTS ARE NEEDED? ƒ HOW DO WE “HOOK” THEM TOGETHER?

ƒ^

SIGNAL FLOW GRAPH NOTATION

FILTER

y[n]

x[n]

∑^ =

M k

k^

k n x b n y

0

]

[

]

[

9/23/

ECE-

Spring-

jMc^

25

TIME-INVARIANCE^ ƒ^

IDEA:^ ƒ^

“Time-Shifting the input will cause the sametime-shift in the output”

ƒ^

EQUIVALENTLY,^ ƒ^

We can prove that^ ƒ^

The time origin (n=0) is picked arbitrary

9/23/

ECE-

Spring-

jMc

26

TESTING Time-Invariance

9/23/

ECE-

Spring-

jMc^

27

LINEAR SYSTEM^ ƒ^

LINEARITY = Two Properties

ƒ^

SCALING^ ƒ^

“Doubling x[n] will double y[n]”

ƒ^

SUPERPOSITION:^ ƒ^

“Adding two inputs gives an output that is thesum of the individual outputs”

9/23/

ECE-

Spring-

jMc

28

TESTING LINEARITY

9/23/

ECE-

Spring-

jMc^

29

LTI SYSTEMS^ ƒ^

LTI:

L

inear &

T

ime-

I^ nvariant

ƒ^

COMPLETELY CHARACTERIZED by:^ ƒ^

IMPULSE RESPONSE

h[n]

ƒ^ CONVOLUTION

: y[n] = x[n]*h[n]

ƒ^ The “rule”defining the system can ALWAYS be re-written as convolution

ƒ^

FIR Example: h[n] is same as b

k

9/23/

ECE-

Spring-

jMc

30

POP QUIZ^ ƒ^

FIR Filter is “FIRST DIFFERENCE”^ ƒ^

y [ n

] =

x [ n ] -

x [ n^ -1]

ƒ^

Write output as a convolution^ ƒ^

Need impulse response ƒ Then, another way to compute the output:

] 1

[

]

[

]

[^

=^

n

n

n

h

δ

δ (^

)^

]

[

] 1

[

]

[

]

[^

nx

n

n

n

y^

δ

δ

9/23/

ECE-

Spring-

jMc^

31

CASCADE SYSTEMS^ ƒ^

Does the order of S

& S 1

matter? 2

ƒ^ NO, LTI SYSTEMS can be rearranged !!! ƒ^ WHAT ARE THE FILTER COEFFS?

{b

}k

S^1

S^2

9/23/

ECE-

Spring-

jMc

32

CASCADE EQUIVALENT

ƒ^ Find “overall” h[n] for a cascade?

S^1

S^2 S^1

S^2