Professional Documents
Culture Documents
Phan Tich Tinhieu Tren Mien Thoi Gian
Phan Tich Tinhieu Tren Mien Thoi Gian
1
Company
Discrete-time signal
LOGO
Representation by a Sequence
• Discrete-time signal
Concerned with processing signals that are
represented by sequences.
x {x(n)}, n
www.company.com
Company
Discrete-time signal
LOGO
Representation by a Sequence
Example:
x(n) 1,1,2, 1, 1, 2, 2,2,1
n
1
x ( n) ,n 0
2
x(n)
3 4 5 6 7 n
-8 -7 -6 -5 -4 -3 -2 -1 1 2 8 9 10
www.company.com
Company Discrete-time signal
LOGO
Important Sequences
• Unit-sample sequence (n)
Sometime call (n)
a discrete-time impulse; or an impulse
1 ,n 0
( n)
0 ,n 0
(n)
n
-8 -7 -6 -5 -4 -3 -2 -1 1 2 3 4 5 6 7 8 9 10
www.company.com
Company Discrete-time signal
LOGO
Important Sequences
• Unit-step sequence u(n)
Fact:
1 ,n 0
u ( n)
(n) u (n) u (n 1)
0 ,n 0
u(n)
n
-8 -7 -6 -5 -4 -3 -2 -1 1 2 3 4 5 6 7 8 9 10
www.company.com
Company Discrete-time signal
LOGO
Important Sequences
• Ramp signal r(n)
n ,n 0
r (n) n.u (n)
0 ,n 0
r(n)
n
0 1 2 3 4 5
www.company.com
Company Discrete-time signal
LOGO
Important Sequences
• Real exponential sequence
n
x(n) a
x(n)
...
... n
-8 -7 -6 -5 -4 -3 -2 -1 1 2 3 4 5 6 7 8 9 10
www.company.com
Company Discrete-time signal
LOGO
Important Sequences
• Sinusoidal sequence
x(n) A cos(n0 )
x(n)
www.company.com
Company Discrete-time signal
LOGO
Important Sequences
• Periodic sequence
A sequence x(n) is defined to be periodic with
period N if x(n) x(n N ) for all N
j0 n
x ( n) e
x ( n ) e j 0 n e j 0 ( n N ) e j 0 N e j 0 n x ( n N
• Example: consider
• 2 k 2 must be a rational
0 N 2 k N
0 0 number
www.company.com
Company Discrete-time signal
LOGO
Important Sequences
• periodic sequence:
www.company.com
Company Discrete-time signal
LOGO
Energy of a sequence
x
x ( n)
n
x(n) 1,1,2, 1, 1, 2, 2,2,1
www.company.com
Company Discrete-time signal
LOGO
Energy of a sequence
• Example: Find Energy of x(n)
• A.
x( n) 1,1,2, 1, 0,1
2 2 2 2 2 2
Ex 1 1 2 1 0 1
n
1
• B. x ( n) , n 0
2 2
n
1
1 2
Ex
n0 2
1
1
www.company.com
2
Company
Discrete-time signal
LOGO Power of a Sequence
2
1 N
lim .
x N 2 N 1 n N x ( n )
www.company.com
Company
Discrete-time signal
LOGO Power of a Sequence
x ( n)
2
x N n 0
www.company.com
Company Discrete-time signal
LOGO
Operations on Sequences
Operations on Sequences
• The addition of two sequences
y (n) x(n) h(n)}
x(n)
a-3
a1
2 7 n
-8 -7 -6 -5 -4 -3 -2 -1 1 3 4 5 6 8 9 10
a2 a7
Characterize a System
www.company.com
Company Discrete-Time Systems
LOGO
y ( n) h( k ) x ( n k ) h( n) * x ( n)
k
x ( n) * h( n) h( n) * x ( n)
www.company.com
Company Discrete-Time Systems
LOGO
h1(n)
x(n) + y(n)
h2(n)
Example
x ( n) u ( n) u ( n N )
n
a n0
h
(n) y(n)=?
0 1 2 3 4 5 6 0 n0
0 1 2 3 4 5 6
www.company.com
Company Discrete-Time Systems
LOGO
Example
y ( n) x ( n) * h( n) x(k )h(n k )
k
n<N
( n 1) n 1
n n
1 a a a
y (n) a n k a n a k a n 1
k 0 k 0 1 a 1 a 1
nN
N n n N
N 1 N 1
1 a a a
y (n) a n k a n a k a n 1
k 0 k 0 1 a 1 a 1
www.company.com
Company Discrete-Time Systems
LOGO
Example
y ( n) x ( n ) * h( n) x(k )h(n k )
k
5
4
n<N
( n 1) n 1
3 n n
1 a a a
2 y (n) a n k a n a k a n 1
1
0
k 0 k 0 1 a 1 a 1
0 5 10 15 20 25 30 35 40 45 50
nN
N n n N
N 1 N 1
1 a a a
y (n) a n k a n a k a n 1
k 0
www.company.com k 0 1 a 1 a 1
Company Discrete-Time Systems
LOGO
Convolution
Direct form
y ( n) x ( n) * h( n ) x(k )h(n k )
k
min(n , M )
y ( n) hmxn m
m max(0 , n L 1)
With n = 0, 1, …, L + M – 1
www.company.com
Company Discrete-Time Systems
LOGO
Example
y ( n) x ( n) * h( n) x(k )h(n k )
k
x(k)
k
0 1 2 3 4 5 6
h(k) k
0 1 2 3 4 5 6
h(0k)
k
0 1 2 3 4 5 6
www.company.com
Company Discrete-Time Systems
LOGO
Example
y ( n) x ( n ) * h( n) x(k )h(n k )
k
x(k)
k
0 1 2 3 4 5 6
compute y(0)
h(0k)
k
0 1 2 3 4 5 6
compute y(1)
h(1k)
k
0 1 2 3 4 5 6
www.company.com How to computer y(n)?
Discrete-Time Systems
Company
LOGO
Convolution
Convolution table:
y ( n) h(i) x( j )
i, j
i j n
x0 x1 x2 x3 x4
h0 h0x0 h0x1 h0x2 h0x3 h0x4
h1 h1x0 h1x1 h1x2 h1x3 h1x4
h2 h2x0 h2x1 h2x2 h2x3 h2x4
h3 h3x0 h3x1 h3x2 h3x3 h3x4
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
h x 1 1 2 1 2 2 1 1
1 1 1 2 1 2 2 1 1
2 2 2 4 2 4 4 2 2
-1 -1 -1 -2 -1 -2 -2 -1 -1
1 1 1 2 1 2 2 1 1
y = [1 3 3 5 3 7 4 3 3 0 1]
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
x = [x0 x1 x2 x3 x4 ]
or
x(n) = x0.(n) + x1. (n–1) + x2.(n–2) + x3.(n–3) + x4.(n-4)
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
h0` h1 h2 h3 h4
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
Plot table
h0 h1 h2 h3 0 0 0 0
x0 x0h0 x0h1 x0h2 x0h3
x1 x1h0 x1h1 x1h2 x1h3
x2 x2h0 x2h1 x2h2 x2h3
x3 x3h0 x3h1 x3h2 x3h3
x4 x4h0 x4h1 x4h2 x4h3
yn y0 y1 y2 y3 y4 y5 y6 y7
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
1 2 -1 1 0 0 0 0
1 1 2 -1 1
1 1 2 -1 1
2 2 4 -2 2
1 1 2 -1 1
2 2 4 -2 2
yn 1 3 3 5 3 5 -1 2
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
y0 y1 y2 yn yL-1+M
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
Overlap-add block
- Khối dữ liệu vào x được chia thành các khối có chiều dài L.
L
ytemp
y0 = L+M
y1 = L+M
y2 = L+M
n=0 n=L n = 2L n = 3L
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
x =[ 1, 1, 2, 1, 2, 2, 1, 1, 0 ]
www.company.com
Discrete-Time Systems
Company
LOGO
Convolution
n 0 1 2 3 4 5 6 7 8 9 10
y0 1 3 3 4 -1 2
y1 1 4 5 3 0 2
y2 1 3 1 0 1
y 1 3 3 5 3 7 4 3 3 0 1
www.company.com
Company
Discrete-Time Systems
LOGO Block diagram representation of system
Addtion:
±
x1(n) x1(n) ± x2(n)
a
x(n) ax(n)
www.company.com
Company
Discrete-Time Systems
LOGO Block diagram representation of system
A signal multiplier :
x1(n) x1(n). x2(n)
x2(n)
Square
x1(n) x1(n). x1(n)
www.company.com
Company
Discrete-Time Systems
LOGO Block diagram representation of system
Unit delay
x(n) z-1 x(n-1)
y(n)=x(n-2)
x(n) z-1 z-1
www.company.com
Company
Discrete-Time Systems
LOGO Block diagram representation of system
Unit advance:
x(n) z1 x(n+1)
x(n) zk y(n)=x(n+k)
y(n)=x(n+2)
x(n) z1 z1
www.company.com
Company Discrete-Time Systems
LOGO
Linear - Nonlinear
x(n)
H y(n)
x2(n) b
x1(n) y1(n) a
H
ay1(n)+by2(n)
x2(n) y2(n) b
H
www.company.com
Company Discrete-Time Systems
LOGO
Linear - Nonlinear
www.company.com
Company Discrete-Time Systems
LOGO
Time invariant -Time varying
x(n-1) y(n-1)
x(n-2) y(n-2)
www.company.com
Company Discrete-Time Systems
LOGO
Time invariant (varying) system
y (n) y1 (n k )
www.company.com
Company Discrete-Time Systems
LOGO
A linear time-invariant (LTI)
www.company.com
Company Discrete-Time Systems
LOGO
Memoryless System
www.company.com
Company Discrete-Time Systems
LOGO
Stability
S | h( k ) |
k
www.company.com
Company Discrete-Time Systems
LOGO
Causal - Anti-causal
-2 -1 0 1 2 3 4 5 n
-4 -3 -2 -1 0 1 2 3 n
www.company.com
Company Discrete-Time Systems
LOGO
Causal - Stable
Example:
h(n) = (0.5)nu(n)
h(n) = -(0.5)nu(-n-1)
h(n) = 2nu(n)
h(n) = -2nu(-n-1)
www.company.com
Company Discrete-Time Systems
LOGO
Recursive - Nonrecursive
www.company.com
Company Discrete-Time Systems
LOGO
FIR - IIR
www.company.com
Company Linear Constant-Coefficient Difference
LOGO
Equations
a
k 0
k y (n k ) bk x( n k )
k 0
N
ak M
bk
y ( n) y ( n k ) x ( n k )
k 1 a0 k 0 a0
www.company.com
Company Discrete-Time Systems
LOGO
Impulse Response
• Impulse Response
x(n)=(n) h(n)=T[(n)
T[] ]
0 0
0 0
www.company.com