Escolar Documentos
Profissional Documentos
Cultura Documentos
1
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
Impulse Response
Impulse Response
a2 h ( t ) + a1 h ( t ) + a0 h ( t ) = ( t )
Impulse Response
Impulse Response
For all time t > 0:
The excitation is zero. The response is the homogeneous
solution of the differential equation.
At time t = 0:
The excitation is an impulse. In general it would be possible
for the response to contain an impulse plus derivatives of an
impulse because these all occur at time t = 0 and are zero
before and after that time. Whether or not the response contains
an impulse or derivatives of an impulse at time t = 0 depends
on the form of the differential equation
an y( n ) ( t ) + an1 y( n1) ( t ) + + a1 y ( t ) + a0 y ( t )
= bm x( m ) ( t ) + bm1 x( m1) ( t ) + + b1 x ( t ) + b0 x ( t )
Impulse Response
Impulse Response
an y( n ) ( t ) + an1 y( n1) ( t ) + + a1 y ( t ) + a0 y ( t )
an y( n ) ( t ) + an1 y( n1) ( t ) + + a1 y ( t ) + a0 y ( t )
= bm x( m ) ( t ) + bm1 x( m1) ( t ) + + b1 x ( t ) + b0 x ( t )
= bm x( m ) ( t ) + bm1 x( m1) ( t ) + + b1 x ( t ) + b0 x ( t )
Case 2: m = n
In this case the highest derivative of the excitation and
response are the same and the response could contain an
impulse at time t = 0 but no derivatives of an impulse.
Case 3: m > n
In this case, the response could contain an impulse at
Case 1: m < n
If the response contained an impulse at time t = 0 then
the nth derivative of the response would contain the nth
derivative of an impulse. Since the excitation contains
only the mth derivative of an impulse and m < n, the
differential equation cannot be satisfied at time t = 0.
Therefore the response cannot contain an impulse or any
derivatives of an impulse.
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
Impulse Response
Impulse Response
Example
Let a system be described by y ( t ) + 3y ( t ) = x ( t ) . If the excitation
x is an impulse we have h ( t ) + 3h ( t ) = ( t ) . We know that
Impulse Response
10
Impulse Response
11
12
Impulse Response
Impulse Response
Example h ( t ) = ( 3 / 16 ) e3t / 4 u ( t ) + (1 / 4 ) ( t )
3t / 4
u ( t ) + (1 / 4 ) ( t )
4 dt ( 3 / 16 ) e
= (t )
3t
/
4
+3 ( 3 / 16 ) e
u ( t ) + (1 / 4 ) ( t )
3t / 4
3t / 4
u ( t ) + (1 / 4 ) ( t )
4 ( 3 / 16 ) e ( t ) + ( 9 / 64 ) e
= (t )
3t / 4
u ( t ) + (1 / 4 ) ( t )
+3 ( 3 / 16 ) e
(t ) = (t )
13
Check.
14
Approximate
Excitation
15
16
T x ( nT ) h (t nT )
p
n=
17
18
19
20
T p = 0.1 s
21
22
Superposition Integral
x (t ) =
x ( ) (t ) d
Convolution Integral
y (t ) =
23
x ( ) h (t ) d
24
x (t ) h (t ) =
x ( ) h (t ) d
response of the system, and if the system is LTI, then the response
if x ( t ) =
x ( ) (t ) d , then y (t ) = x ( ) h (t ) d .
25
26
t
h ( )
h ( )
h ( ( t )) = h ( t )
27
28
Now let t = 0.
30
vout ( t ) =
x ( ) h (t ) d = u ( )
31
e (t ) / RC
u ( t ) d
RC
32
Convolution Example
t < 0 : vout ( t ) = 0
t >0:
vout ( t ) =
u ( )
e (t ) / RC
u ( t ) d
RC
t
1
1 e (t ) / RC
( t ) / RC
= 1 et / RC
vout ( t ) =
e (t ) / RC d =
= e
0
RC 0
RC 1 / RC 0
t
vout ( t ) = 1 et / RC u ( t )
33
34
Convolution Example
x ( t ) A ( t t 0 ) = A x ( t t 0 )
If g ( t ) = g 0 ( t ) ( t ) then g ( t t 0 ) = g 0 ( t t 0 ) ( t ) = g 0 ( t ) ( t t 0 )
If y ( t ) = x ( t ) h ( t ) then y ( t ) = x ( t ) h ( t ) = x ( t ) h ( t )
and y ( at ) = a x ( at ) h ( at )
Commutativity
x (t ) y (t ) = y (t ) x (t )
Associativity
x ( t ) y ( t ) z ( t ) = x ( t ) y ( t ) z ( t )
Distributivity
x ( t ) + y ( t ) z ( t ) = x ( t ) z ( t ) + y ( t ) z ( t )
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
35
36
System Interconnections
1 t , t < 1
tri ( t ) =
= rect ( t ) rect ( t )
, t 1
0
Cascade
Connection
37
System Interconnections
38
If two systems are excited by the same signal and their responses
are added they are said to be parallel connected.
It follows from the distributive property of convolution that the
impulse response of a parallel connection of LTI systems is the
sum of the individual impulse responses.
d
( y (t )). It follows then that the unit impulse response h (t ) is
dt
the first derivative of the unit step response h 1 ( t ) and, conversely
that the unit step response h 1 ( t ) is the integral of the unit
Parallel
Connection
impulse response h ( t ) .
39
40
Systems Described by
Differential Equations
k=0
k=0
a s Ye
k
st
h (t ) dt is finite.
k=0
= bk s k Xe st .
k=0
Ye st ak s k = Xe st bk s k
k=0
41
k=0
Y
=
X
M
k=0
N
k=0
bk s k
ak s k
42
Systems Described by
Differential Equations
Systems Described by
Differential Equations
Now let x ( t ) = Xe j t and let y ( t ) = Ye j t .
M
k=0
N
k=0
bk s k
ak s k
bM s M + bM 1s M 1 + + b2 s 2 + b1s + b0
aN s N + aN 1s N 1 + + a2 s 2 + a1s + a0
H ( j ) =
43
M 1
N 1
+ + b2 ( j ) + b1 ( j ) + b0
2
+ + a2 ( j ) + a1 ( j ) + a0
2
44
sys = tf(num,den)
y = H ( j 0 ) + x .
aN ( j ) + aN 1 ( j )
Systems Described by
Differential Equations
bM ( j ) + bM 1 ( j )
45
46
s2 + 4
s 5 + 4s 4 + 7s 3 + 15s 2 + 31s + 75
can be created by the commands
H1 ( s ) =
Discrete Time
47
48
Impulse Response
Impulse Response
Since the impulse is applied to the system at time n = 0,
that is the only excitation of the system and the system is
causal the impulse response is zero before time n = 0.
= b0 x [ n ] + b1 x [ n 1] + + bM x [ n M ]
h[n] = 0 , n < 0
After time n = 0, the impulse has come and gone and the
excitation is again zero. Therefore for n > 0, the solution of
49
50
51
52
53
54
n ( 0.1665 + j0.1181) e
h [ n ] = ( 0.5722 )
u[n]
j 2.1858n
+
0.1665
j0.1181
e
(
)
u[n]
55
System Response
56
57
58
System
Excitation
y [ n ] = x [ 1] h [ n + 1] + x [ 0 ] h [ n ] + x [1] h [ n 1] +
where h [ n ] is the impulse response. This can be written in
System
Impulse
Response
x[ m]h[n m]
m=
System
Response
M. J. Roberts - All Rights Reserved. Edited by Dr. Robert Akl
59
60
10
61
63
64
x[ m]h[n m]
m=
Commutativity
x [ n ] A [ n n0 ] = A x [ n n0 ]
Let y [ n ] = x [ n ] h [ n ] then
Associativity
y [ n ] y [ n 1] = x [ n ] ( h [ n ] h [ n 1]) = ( x [ n ] x [ n 1]) h [ n ]
Distributivity
( x [ n ] y [ n ]) z [ n ] = x [ n ] ( y [ n ] z [ n ])
y [ n n0 ] = x [ n ] h [ n n0 ] = x [ n n0 ] h [ n ]
( x [ n ] + y [ n ]) z [ n ] = x [ n ] z [ n ] + y [ n ] z [ n ]
62
65
66
11
Numerical Convolution
Numerical Convolution
nx = -2:8 ; nh = 0:12 ;
Compute values of x
h = tri((nh- 6) / 4) ;
Compute values of h
y = conv(x,h) ;
%
%
%
ny = (nx(1) + nh(1)) + (0:(length(nx) + length(nh) - 2)) ;
%
%
%
subplot(3,1,1) ; stem(nx,x,'k','filled') ;
xlabel('n') ; ylabel('x') ; axis([-2,20,0,4]) ;
subplot(3,1,2) ; stem(nh,h,'k','filled') ;
xlabel('n') ; ylabel('h') ; axis([-2,20,0,4]) ;
subplot(3,1,3) ; stem(ny,y,'k','filled') ;
xlabel('n') ; ylabel('y') ; axis([-2,20,0,4]) ;
67
Numerical Convolution
68
Numerical Convolution
Continuous-time convolution can be approximated using the
conv
function in MATLAB.
( ) ( ) ( ) x ( ) h (t ) d
Approximate x ( t ) and h ( t ) each as a sequence of rectangles
y t = x t h t =
of width Ts .
t nTs Ts / 2
Ts
( ) x ( nT ) rect
x t
n=
t nTs Ts / 2
Ts
( ) h ( nT ) rect
h t
n=
69
70
Numerical Convolution
Stability and Impulse Response
( ) x ( mT ) h (( n m)T )T
y nTs
m=
( )
y nTs Ts
x m h n m = T x n h n
m=
( )
h [ n ] is finite.
( )
n=
71
72
12
System Interconnections
System Interconnections
Systems Described by
Difference Equations
a y [ n k ] = b x [ n k ].
k=0
k=0
Yz
a z
= Xz
H (z) =
N
k=0
ak z
H (z) =
k=0
N
k=0
bk z
ak z k
= zN M
M
k=0
N
k=0
bk z k
ak z k
76
a y[n k ] = b x[n k ]
k
M 1
b0 z + b1z
+ + bM 1z + bM
a0 z N + a1z N 1 + + aN 1z + aN
k=0
k=0
becomes
N
k=0
k=0
Ye jn ak e jk = Xe jn bk e jk
Y
=
X
b0 + b1z + b2 z + + bM z
a0 + a1z 1 + a2 z 2 + + aN z N
or, alternately,
M
b z
Frequency Response
k=0
k=0
75
Systems Described by
Difference Equations
1
k=0
k = 0 bk z k
k=0
response y [ n ] y [ n 1] .
74
77
78
13
Frequency Response
79
80
81
14