Académique Documents
Professionnel Documents
Culture Documents
Discussion#4
Tarun Choubisa
Dept of ETC,
KIIT University
19 January 2011 1
Resources
• O&W
• Ch. 2, Sect. 1-8 in Linear Signals & Systems, 2nd Ed. by Lathi
• http://www.jhu.edu/signals/
• http://www.isip.piconepress.com/projects/speech/software/demonstrations/applets/util/convolution/v6.0/
• http://www.see.ed.ac.uk/~mjj/dspDemos/EE4/tutConv.html
• http://www.see.ed.ac.uk/~mjj/dspDemos/EE4/tutConvDisc.html
• http://dsp.feit.ukim.edu.mk/demos/Konvolucija.html
• http://dsp.feit.ukim.edu.mk/demos/analogconv/Analog%20Convolution.html
• http://users.ece.gatech.edu/~bonnie/book/OnlineDemos/CTConv/
Convolution
• Definition: It is the tool or operation to determine the
response of the LTI system (h(n-k) is the output for
shifted impulse and x(k) is the coefficient. )
• Convolution between two DT signals x(n) and h(n) is
expressed as
By time invariance
Response of m at time n is h[n-m].
[n m] System
h[n m] time-invariance
n n
Convolution, time-invariance and linearity
Convolution, time-invariance and linearity
y[n] T x[n]
T x[k ] [n k ]
k
x[k ] hk [n]
k
If the system is time-invariant
x[k ] h[n k ]
k
Convolution sum
y[n] x[k ] h[n k ]
k
y[ n] x[ k ]hk [ n]
k
x[n] x[k ] [n k ]
0 4 1 0 0 0 = 5 = y(0)
Convolution: Graphical Method
• Shift by -1 to get y(-1)
0 0 2 0 0 0 0 = 2 = y(-1)
Convolution: Graphical Method
• Shift by -2 to get y(-2)
-2 2 -1 0 0 = -1 = y(1)
Convolution: Graphical Method
• If x[n]=0 for n<N1 & h[n] is zero for n<N2, then x[n]*h[n]=0 for n<N1+N2 (O & W Q2.16a).
• If x[n]=0 for n>N3 & h[n]=0for n>N4, then x[n]*h[n]=0 for n>N3+N4
Convolution Output: Sum of scaled,
•
shifted impulse
Consider a LTI system with the
response
following unit impulse response:
h[n] = [0 0 1 1 1 0 0]
h[n] u[n]
n 1
Therefore, y[n] 1
u[n]
1
• When two causal systems are convolved, the final system will also be causal (O & W Q2.19b).
• If x[n]=0 for n<N1 & h[n]=0 for n<N2, then x[n]*h[n]=0 for n<N1+N2 (O & W Q2.16a).
Convolution: Mathematical functions(one is
infinitely right sided and another is finite seq.)
Convolution: Mathematical functions(one is
infinitely right sided and another is finite seq.)
Convolution: Mathematical functions(one is
infinitely right sided and another is finite seq.)
Convolution: Mathematical functions(one is
infinitely right sided and another is finite seq.)
Convolution: Filtering
Convolution: Filtering
Matlab Exploration
Matlab Exploration: Visualization
Example: Convolution Integral of
two different duration pulses
Example: Find y(t) = x(t)*h(t) for x(t) and h(t) shown below using the graphical method.
Follow the procedure listed on the previous slide.
x(t) h(t)
2
1
t t
0 1 0 1 3
Solution:
1. Form x( ):
x( )
0 1
32
Example: Convolution of two different
duration pulses
h( ) 2. Form h(t - ): h(- )
2 2
33
Example: Convolution of two pulses
3A. First range selected: (- <t < 1):
This range results in no overlap for all values of (i.e., - < < ).
h(t- ) x( )
h(t- ) sliding as t
varies over the 2
range - < t < 1
1
t-3 t-1 0 1
No overlap
so y(t) 0 for - t 1
34
Example: Convolution of two pulses
3B.Second range selected: (1 <t < 2): Left part come into overlap, right part not
This range results in an overlap from = 0 to = t-1.
h(t- ) x( )
h(t- ) sliding as t
varies over the
2
range 1 < t < 2
1
t-3 0 t-1 1
0 0
x( )h(t - ) 12 2 0 t -1
0 t -1
0 t -1
and y(t) x( )h(t - )d 0d 2d 0d
- - 0 t 1
t 1
y(t) 2 0
2(t - 1) for 1 t 2 35
Example: Convolution of two pulses
3C.Third range selected: (2 <t < 3): full overlap
This range results in an overlap from = 0 to = 1.
h(t- ) x( )
h(t- ) sliding as t 2
varies over the
range 2 < t < 3 1
t-3 0 1 t-1
0 0
x( )h(t - ) 1 2 2 0 1
0 1
1
and y(t) x( )h(t - )d 2d
- 0
1
y(t) 2 0
2(1 - 0) 2 for 2 t 3 36
Example: Convolution of two pulses
3D. Fourth range selected: (3 <t < 4): Right part is into overlap, left part go out
This range results in an overlap from = t-3 to = 1.
x( ) h(t- )
h(t- ) sliding as t
varies over the 2
range 3 < t < 4 1
0 t-3 1 t-1
0 t 3
x( )h(t - ) 1 2 2 t -3 1
0 1
1
and y(t) x( )h(t - )d 2d
- t 3
1
y(t) 2 t 3
2 1- t - 3 2 4-t 8 - 2t for 3 t 4 37
Example: Convolution of two pulses
3E.Fifth range selected: (4 <t): fully go outside, no overlap
This range results in no overlap for all values of (i.e., - < < ).
x( ) h(t- ) sliding as t
h(t- ) varies over the
2 range t > 4
1
0 1 t-3 t-1
No
overlap
so y(t) 0 for 4 t
38
Example: Convolution of two pulses
5. Compile the results of y(t) over the five ranges. Also graph y(t).
0 t 1
2t - 2 1 t 2
y(t) x(t) * h(t) 2 2 t 3
- 2t 8 3 t 4
0 4 t
y(t)
t
0 1 2 3 4
Convolution: A mathematical operator which computes the “amount of overlap” between two
functions. Can be thought of as a general moving average
39
Convolution: Graphical Representation
For the first pulse
Amp= 0.5
Time = -0.5 : 0.5 sec
Green one is the output if blue and red will convolve.
Convolution demo
http://www.jhu.edu/signals/
http://www.isip.piconepress.com/projects/speech/software/demonstrations/applets/util/convolution/current/index.html
http://dsp.feit.ukim.edu.mk/demos/Konvolucija.html
http://dsp.feit.ukim.edu.mk/demos/analogconv/Analog%20Convolution.html
http://users.ece.gatech.edu/~bonnie/book/OnlineDemos/CTConv/
Communication:Transmit One Bit
• Transmission over communication channel
(e.g. telephone line) is analog
x0 (t ) y0 (t ) receive
‘0’ bit ‘0’ bit
input output
p Communication h h+ p
t
t Channel
x(t) y(t) -A Th
-A
x1 (t ) y1 (t )
receive‘
Model channel as h(t )
1’ bit
A LTI system with 1 A Th
impulse response
t
t t h(t)
h+ p
p t
h h
‘1’ bit Assume that Th < Tp
4 - 41
Transmit Two Bits (Interference)
• Transmitting two bits (pulses) back-to-back
will cause overlap (interference) at the
receiver h(t )
x(t ) y (t )
A
* 1 =
h+ p
p
t h t t
p p
-A Th
‘1’ bit ‘0’ bit Assume that Th < Tp ‘1’ bit ‘0’ bit
4 - 42
Preventing ISI at Receiver
• Option #1: wait Th seconds between pulses in
transmitter (called guard period or guard interval)
x(t ) h(t )
y (t )
A
* 1 =
h+ b h+ b
t h t t
b h b
-A Th
‘1’ bit ‘0’ bit Assume that Th < Tb ‘1’ bit ‘0’ bit
Example 6: Evaluate y(t) = x(t)*h(t) for: x(t) = u(t), h(t) = u(t) by directly evaluating
the convolution integral rather than through a graphical approach.
Solution :
y(t) u( )u(t - )d
-
u(t - ) = 1 only for < t so change upper limit to t
so u( ) = 1 only for > 0 so change lower limit to 0
t t
y(t) 1 1d t -0 t tu(t)
0
0 A graphical approach would show that the functions
so overlap for 0 < t < or else note that x(t) and y(t) both
u(t)*u(t) = tu(t) are non-zero for t > 0.
54
Important Convolution
55
Important Convolution
• Case(1): -0.5<=t<0
• Case(2): -0.5+t<=-0.5, t<0.5; 0<t<=0.5
• Case(3): -0.5+t<=0.5; 0.5<t<=1
Hint: Shift and delay
the simplest waveform
Select a piecewise constant amplitude function for reversal and shifting function.
http://cnyack.homestead.com/files/aconv/conv2.htm
Convolution: Shifting Function Selection
• Solution
• For this problem I choose to flip x[n]
• Some authors prefer to flip the shorter signal. My
personal preference is to flip the simple signal although
I sometimes don’t follow that “rule”…only through lots
of practice you can learn how to best choose which
one to flip.
Convolution: Shifting Function Selection
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: ramp up and ramp down
Convolution: Big Picture
* =
DECONVOLUTION: A solution
(*)-1 =
DECONVOLUTION
Y HX
X H 1Y
N
y[n] x[n]* h[n] x[k ]h[n k ]
k 0
N 1
y[n] x[k ]h[n k ] x[n]h[0]
k 0
N 1
y[n] x[k ]h[n k ]
k 0
x[n]
h[0]
Acknowledgement
• Various graphics used here has been taken from
public resources instead of redrawing it. Thanks to
those who have created it.
• Thanks to:
– Signals and Systems, Haykin & Van Veen
20 January 2011 81