lecture4 (1)
lecture4 (1)
¥
y(t) = x ( t ) * h ( t ) = ò-¥ x (t ) h ( t - t ) dt
BP INC212 2
Example 2.6 Reflect-and-shift Convolution
Evaluation
Given x ( t ) = u ( t - 1) - u ( t - 3) and h ( t ) = u ( t ) - u ( t - 2) , evaluate the convolution
integral y(t) = x(t) * h(t).
BP INC212 3
ì 0, t <1
ï t - 1, 1 £ t < 3
ï
y (t ) = í
ï5 - t , 3 £ t < 5
ïî 0, t ³5
(a) The input x(t) depicted above the reflected and time-shifted impulse
response. (b) The product signal wt(t) for 1 £ t < 3. (c) The product
BPsignal wt(t) for 3 £ t < 5. (d) The system
INC212 output y(t). 4
Matlab: conv x ( t ) = u ( t - 1) - u ( t - 3) h ( t ) = u ( t ) - u ( t - 2)
BP INC212 6
Solving by convolution
t
t 1 - RC
s(t ) = ò e u (t )dt .
-¥ RC
ì 0, t<0
ï
s(t ) = í 1 t - t
ï
î RC -¥ ò e RC u (t )dt t ³ 0
ì 0, t<0
ï
s (t ) = í 1 t - t
ï
î RC 0 ò e RC dt t ³ 0
ìï 0, t<0
=í -
t
ïî1 - e , t ³ 0
RC
BP INC212 7
Matlab: conv x(t) = u(t) h(t ) =
1 - RCt
RC
e u (t )
BP INC212 9
1. Fix h(t ) and flip x(t )
Growing Shrinking
x(t ) = u (t ) - u (t - 2)
0<t<2 t>2
x(-t ) = u (-t ) - u (-t - 2) y (t ) = x(t ) * h(t ) y (t ) = x(t ) * h(t )
¥ ¥
ò
-t
= ò 1´ e -t
dt = 1´ e dt
t =0 t =t - 2
-t t -t t
= -e = -e
0 t -2
= -e -t + 1 [
= e -t e 2 - 1 ]
2. Fix x(t ) and flip h(t ) (Harder!!!)
Growing Shrinking
x(t ) = u (t ) - u (t - 2) 0<t<2 t>2
y (t ) = x(t ) * h(t ) y (t ) = x(t ) * h(t )
h(t ) = e -t u (-t ) ¥ ¥
= ò 1´ e t -t
dt = ò 1´ et -t dt
t =0 t =0
t -t t -t t 2
=e = e ´e
0 0
= 1 - e -t [
= e -t e 2 - 1 ]
ì 0, t <0
ïï
y ( t ) = í 1 - e- t , 0£t <2
ï 2
ïî ( e - 1) e -t
, t³2
(a) The input x(t) superimposed over the reflected and time-shifted impulse response
h(t – t), depicted as a function of t. (b) The product signal wt(t) for 0£ t < 2. (c) The
product signal wt(t) for t ³ 2. (d) The system output y(t).
BP INC212 12
Matlab: conv x(t) = u(t) - u(t - 2) h(t ) =
1 - RCt
RC
e u (t )