Documente Academic
Documente Profesional
Documente Cultură
Equations
Difference Equations
a0 y[n] a1 y[n 1] a N 1 y[n N 1] a N y[n N ]
b0 x[n] b1 x[n 1] bM x[n M ]
N
a
k 0
k 0
k 0
y[n k ] bk x[n k ]
y h [n k ] 0
1
y[n]
a0
k 0
y p [n k ] bk x[n k ]
b x[n k ] a
k 0
k 0
k 1
y[n k ]
a
b
a
b
x[n]
1
N 1
N
a
z
a
z
a
z
y[n]
0
1
N 1
N
1
M 1
M
b
z
b
z
b
z
0
1
M 1
M
a1 z 1 a N 1 z N 1 a N z N D( z )
b1 z 1 bM 1 z M 1 bM z M N ( z )
y[n]
N ( z)
D( z )
x[n]
Complex Roots
Complex roots are expressed in polar form as j = rej and
the corresponding solution is defined as rncos(n).
Repeated conjugate roots will produce same functions with a
multiplier n added for every repetition
Step to
impulse
(t ) du (t )
Output
Impulse
to step
Step to
impulse
Impulse
to step
dt
u (t ) ( )d
u[n]
[k ]
h(t ) dg (t )
dt
g (t ) h( )d
h[k ]
hn
isfinite.
Stability
The bounded-input bounded-output (BIBO) stability of the
system requires
h[n]
n
Imaginary
axis
Marginal
stability
-1
z-plane
Real
axis
-j
Stable
Region
10
y[n] H ( z ) z e j X m e jn jx H (e j ) X m e jn jx
j
H (e ) X m e
j
jnt jx jH ( e j )
H (e ) H (e ) e
jH ( e j )
Ym e jn jy
is called the frequency response
function of the discrete-time
system.
11
Example 1
Find the complete solution of the system represented by
4y[n] 4y[n-1] + y[n-2] = 2x[n] x[n-1]
for x[n] = u[n] assuming that the system is at initial rest
(i.e. y[-1] = y[-2] = 0)
D(z) = 4 4z-1 + z-2 = 0, multiplying both sides by
>> roots([4 -4 1])
2
2
z : 4z 4z + 1 = 0 yields z1,2 = 1/2.
Hence the homogeneous solution
is
n
1
1
y h [n] c1 c2 n
2
2
ans =
u[n]
0.5000
0.5000
12
2 z 1
y p [ n]
4 4 z 1 z 2
Complete solution
u[n] u[n]
z 1
y[n]
1
c1
2
1
c2 n
2
1 u[n]
13
y[-1] = y[-2] = 0
1
y[n] c1 c2 n 1 u[n]
2
2
The equation can be rewritten as
4y[n] = 2x[n] x[n-1] + 4y[n-1] - y[n-2]
0
1
1
y[0] c1 c2 0 1 u[n] y[0] = c1 + 1 = 1/2 c1 = -1/2
2
2
y[1] = c1(1/2) + c2(1/2) + 1 = -1/4 + 1 +c2(1/2) = 3/4 c2 = 0
0
14
Example 2
Find the impulse response of the system in example -1
4y[n] 4y[n-1] + y[n-2] = 2x[n] x[n-1]; original equation
4h[n] = 2[n] [n-1] + 4h[n-1] - h[n-2]; reorganized for h[n]
h[n] = {c1(1/2)n + c2n(1/2)n}u[n]; homogeneous solution in exp1
The first impulse is applied at n = 0. Therefore all values of x[n] and
h[n] prior to n = 0 are considered as zero.
4h[0] = 2[0] [0-1] + 4h[0-1] - h[0-2] = 2 h[0] = 1/2 = c1
4h[1] = 2[1] [1-1] + 4h[1-1] - h[1-2] = -1 + 2 = 1
h[1] = 1/4= (1/2)(1/2) + c2(1/2) c2 = 0 h[n] = (1/2)(1/2)nu[n]
This is an infinite impulse response (IIR) system
15
z m hn m
whichcanbewrittenas
yn zn
z transform of h[m]
znm hm
m
h
m
z
m
1 44 2 4 43
complex
constant
16
LetaDTsystembedescribedby
Example 3
3yn 2 yn 1 yn 2 xn
Impulse n
n
TheeigenfunctionistheDTcomplexexponential,
Substitutingintothehomogeneousdifferenceequation,
3 n 2 n1 n2 0
Dividingthroughby
n2
3 2 2 1 0
Solving, 0.333 j0.4714
Theconstantscanbefoundbeapplyinginitialconditions.
Forthecaseofunitimpulseexcitationattime,n=0,
3h0 2h1402431 h1402432 x0 1 h0 13
0
2
3h1 2h141
1
h
1
2
x
1
h
1
9
2 43
14 2 43
1
3
-0.333-0.4714j]
h>>
0 A=[1
K11;-0.333+0.4714j
0.333 j0.4714
K 2 0.333 j0.4714 K1 K 2 13
0
A=
1.0000
1.0000
-0.3330 + 0.4714i -0.3330 - 0.4714i
>> B=[1/3;-2/9]
B=
0.3333
-0.2222
1
1
K1 1 3
K 2
2
9
>> K=A\B
K=
0.1667 + 0.1180i
0.1667 - 0.1180i
19
Example 4
r 1
k
r
1 r
k 0
n
r 1
n
1 1
g[n] h[k ]
k
k 0 2 2
n
2
1
1
2
n 1
1 1
1 u[n]
2 2
20