Chapter 2
Chapter 2
Chapter 2
! Duration: 3 periods
! Outline:
1. Representations of DT signals
2. Some elementary DT signals
3. Simple manipulations of DT signals
Sampled signals (tin hieu lay mau)
CT: contiguous-time
DT: discrete-time
x[-2] x[7]
-2T -T 0 T 2T 3T 4T 5T 6T 7T . . . nT
T: sampling period (s), t: contiguous time (s), n: discrete time = sample index
Representations of DT signals
1. Functional representation
ì2 n , 1 £ n £ 3
x[n] = í
î0, elsewhere
2. Tabular representation
n … -1 0 1 2 3 4…
x[n] … 0 0 2 4 8 0…
Representations of DT signals
3. Sequence representation
{ }
x[n] = 0 , 2 , 4 , 8
n=0
4. Graphical representation 8
x[n]
4
2 …
…
-1 0 1 2 3 4 5 n
Lecture 2
Discrete-time (DT) Signals
! Duration: 3 periods
! Outline:
1. Representations of DT signals
2. Some elementary DT signals
3. Simple manipulations of DT signals
Some elementary DT signals
ì1, n ³ 0
u[n] = í
î0, n < 0
1 1 1 u[n]
-1 0 1 2 3 4 5 6 n
Q: x[n]=5.u[n]?
Time-shifted unit step
ì1, n ³ n 0
Replace n with n-n0 " u[n - n 0 ] = í n0: shift (an integer)
î0, n < n 0
(is a n0-samples shifted version of the signal u[n])
1 1 1
u[n-n0]
n0-1 n0 n0+1 n
Q: x[n]=-5.u[n-2]?
Unit impulse sequence
ì1, n = 0
d [ n] = í
(/delta/) î0, n ¹ 0
-2 -1 0 1 2 3 n
Q: x[n]=-5 δ[n]?
Time-shifted unit impulse
ì1, n = n 0
d[n - n 0 ] = í
î0, n ¹ n 0
1
n0-1 n0 n0+1 n
Q: x[n]=-5 δ[n+2]
Relation between unit step and unit impulse
n
u[n] = å d [
k = -¥
k ] =d[n]+d[n-1]+d[n-2]+…+d[n-M]+…
: running sum
å x[n]d [n - n ] = x[n ]
n = -¥
0 0
Sinusoidal signal
x (n ) = A cos(W n + q), - ¥ < n < +¥
= A cos(2pFn + q), - ¥ < n < +¥
1.5
0.5
-0.5
-1
-1.5
-20 -15 -10 -5 0 5 10 15 20
Exponential signal
x[n] = a n
1. If a is real, then x[n] is a real exponential
a > 1 " growing exponential
0 < a < 1 " shrinking exponential
-1 < a < 0 " alternate and decay
a < -1 " alternate and grows
2. If a is complex, then x[n] is a complex exponential
Exponential signal - Real examples
a>1 0<a<1
-1<a<0 a<-1
Exponential signal - Complex example
æ 1 pö
ç - + j ÷n
x[n] = 2e è 12 6 ø
j: imaginary unit
Real part
2
-1
-2
0 5 10 15 20 25 30 35 40
Imaginary part
2
-1
0 5 10 15 20 25 30 35 40
Lecture 2
Discrete-time (DT) Signals
! Duration: 3 periods
! Outline:
1. Representations of DT signals
2. Some elementary DT signals
3. Simple manipulations of DT signals
Simple manipulations of DT signals
! Transformation of time:
- Time shifting
- Time reversal
! Adding and subtracting signals
Time shifting a DT signal
x[n]
4
2
1
-1 0 1 2 3 4 5 n
x[n+2] x[n-2]
4 4
2 2
1 1
-2 -1 0 1 2 n 0 1 2 3 4 5 n
n=-1: x[-1+2]=x[1]=1 n=4: x[4-2]=x[2]=4
Time reversal a DT signal
x[n] 4
2
1
-1 0 1 2 3 4 5 n
4 x[-n]
2
1
n=-1: x[-(-1)]=x[1]=1
-5 -4 -3 -2 -1 0 1 n
Combining time reversal and time
shifting
x[n] 4 x[-n+1]??
2
1 n<=-3: x[-n+1]=0
n=-2: x[-(-2)+1]=x[3]=2
n=-1: x[-(-1)+1]=x[2]=4
-1 0 1 2 3 4 5 n n=0: x[-0+1]=x[1]=1
n>=1: x[-n+1]=0
Examples of combining time
reversal and time shifting
x[n] 4
2 x[-n-1]??
1
-1 0 1 2 3 4 5 n
Adding and subtracting signals
! Do it “point by point”
! Can do using a table, or graphically, or by
computer program
! Example: x[n] = u[n] – u[n-4]
n <=-1 0 1 2 3 >=4
x[n] 0 1 1 1 1 0
Exercise
x[n]
2
1
-1 0 1 2 3 4 5 n
! Duration: 3 periods
! Outline:
1. Input-output description of systems
2. DT system properties
3. Linear-time invariant (LTI) systems
Input-output description of DT systems
• Ex1:
• Ex2:
" a five-point median filter, used to remove spikes from experimental data
System #" Filter
Lecture 3
DT systems
! Duration: 3 periods
! Outline:
1. Input-output description of systems
2. DT system properties
3. LTI systems
DT system properties
• Causality
• Stability
• Linearity
• Time-invariance
Causality
! The output of a causal system (at each time) does not depend
on future inputs
(n0: current time instant " n0 -1: past, n0 +1: future)
" y[n0] (result) only depends on x[n0], x[n0 -1], x[n0 -2],…(cause)
for all n0 interger
" Imply if the system is physically implementable in online mode
Examples for causality
b) An accumulator: unstable
Scaling signals and adding them, then processing through the system
same as
Processing signals through system, then scaling and adding them
Only has theoretical meanings, but simplify modeling & analysis of real systems
Time-invariance
! If you time shift the input, get the same output, but with the
same time shift
! The behavior of the system doesn’t change with time
If T(x[n]) = y[n]
then T(x[n-n0]) = y[n-n0]
Only has theoretical meanings, but simplify modeling & analysis of real systems
Examples for linearity and time-
invariance
Linear
Time-variant
Examples for linearity and time-
invariance
Non-linear
Time-invariant
Examples for linearity and time-
invariance
! Duration: 3 periods
! Outline:
1. Input-output description of systems
2. DT system properties
3. LTI systems
Computing the response of DT LTI
systems to arbitrary input
Method 2:
¥
We can describe any DT signal x[n] as: x[n] = å x[k ]d [n - k ]
k =-¥
4
Example: x[n] 2
1
-1 0 1 2 3 n
4
1.δ[n-0] + 4.δ[n-1] + 2.δ[n-2]
2
1
-1 0 1 2 n -1 0 1 2 n -1 0 1 2 n
Impulse response of DT LTI systems
h[n]
x[n] y[n]
h[n]
δ[n] h[n]
h[n] = y[n] | x[n] = δ[n]
Response of LTI system to delayed impulse
h[n]
δ[n] h[n]
Time-invariant property
h[n]
δ[n-k] h[n-k]
Response of LTI system to a DT signal
δ[n-k] h[n-k]
h[n]
Time-invariant property
¥ ¥
x[n] = å x[k ]d [n - k ]
k =-¥
y[n] = å x[k ]h[n - k ]
k =-¥
h[n]
¥
y[n] = x[n] * h[n] = å
k =-¥
x[k ]h[n - k ]
Suppose:
Length of x[k] is Nx " N1 ≤ k ≤ N1 + Nx – 1
Length of h[n-k] is Nh " N2 ≤ n-k ≤ N2 + Nh – 1
" N1 + N2 ≤ n ≤ N1 + N2 + Nx + Nh – 2
Length of y[n]:
Ny = Nx + Nh – 1
Examples of computing the convolution sum
x[n]
n
-1 0 1 2 3
h[n]
n
-1 0 1 2 3
Ex1 (cont.)
-1 0 1 2 3 k -1 0 1 2 3 k -2 -1 0 1 k
-4 -3 -2 -1 0 k -2 -1 0 1 2 k -1 0 1 2 k
Ex3. Find y[n] = x[n]*h[n] where x[n] = bnu[n] and h[n] = anu[n+2]
|a| < 1, |b| < 1, a ≠ b
DT LTI properties based on
impulse response
å h[n]
n = -¥
< ¥
! Commutative law
! Associative law
! Distributive law
Commutative law
h[n]
x[n] y[n]
x[n]
h[n] y[n]
Associative law
=x[n]*(h1[n]*h2[n])
h1[n]*h2[n]
x[n] y[n]
h2[n] h1[n]
x[n] y[n]
Directly connected systems
Distributive law
h1[n] + h2[n]
x[n] y[n]=x[n]*(h1[n]+h2[n])
y1[n] = x[n]*h1[n]
h1[n]
x[n] y[n]
General form:
N M
Û å a k y[n - k ] = å b r x[n - r ], a 0 = 1
k =0 r =0
N, M: non-negative integers
N: order of equation
ak, br: constant real coefficients
HW
Prob.3 Conclude about the linearity, time-invariance,
stability, causality of the following systems. Prove!
(a)
(b)
Prob.4 Determine the causality and the BIBO stability for the
systems with the following impulse responses:
a) h[n] = sin(-n)u[n]
b) h[n] = e-nu[-n]
c) h[n] = enu[n]
d) h[n] = sin(n)u[-n]
e) h[n] = ne-nu[n]
f) h[n] = e-nsin(n)u[n]
HW