Lecture 5 Discrete Time Systems New
Lecture 5 Discrete Time Systems New
discretetime system
excitation
output
signal
H .
input
signal
y ( n) H x ( n)
x(n)
y ( n)
response
y ( n)
3
Classification of Discrete-Time
Systems
Static vs. Dynamic Systems.
A discrete-time system is called static or memoryless if its output at
any time instant n depends on the input sample at the same time, but
not on the past or future samples of the input. In the other case, the
system is said to be dynamic or to have memory.
If the output of a system
N 0 at time n is completely determined by the
input
samples in the interval from n-N to n (
), the system is
N 0
said to have memory of duration N.
If
0 N
If N
If
Examples:
The static (memoryless) systems:
y[n] x[n]
y[n] x[n no ]
is linear if only if
constants
and
The multiplicativeH
(scaling)
of axlinear
a x (nproperty
) aH
(n) system:
1 1
Examples
Ideal Delay System
y[n] x[n no ]
T{x1[n] x2 [n]}
T{x2 [n]} T x1[n]
Tax[n]
aT x[n]
x1[n no ] x2 [n no ]
x1[n no ] x2 [n no ]
ax1[n no ]
ax1[n no ]
x(n)
y(n)=T[x(n)]
TT[[]]
y (n) x(n nd )
Moving Average
k M
1
y ( n)
x(n k )
M 1 M 2 1 k M1
Accumulator
y ( n)
x(k )
Examples:
The linear systems:
y ( n) h( k ) x ( n k )
k 0
Linearity: Example
Linearity Example 2:
Linearity Example 3:
F [.]
where
is some arbitrary function. If a system does not satisfy this
definition, it is called non-causal.
18
Examples:
The causal system:
y ( n) h( k ) x ( n k )
k 0
y (n) nx( n 1) bx 3 (n 1)
y ( n)
10
h( k ) x ( n k )
k 10
19
y ( n) H x ( n)
x(n)
y ( n)
implies that
y (n k ) H x(n k )
x(n k )
y (n k )
(TIME) Shift-Invariant
Systems
y(n)=T[x(n)]
x(n)
x(n-k)
x(n)
x(n-1)
x(n-2)
TT[[]]
y(n-k)
y(n)
y(n-1)
y(n-2)
Examples:
The time-invariant systems:
3
y
(
n
)
x
(
n
)
bx
( n)
y ( n) h( k ) x ( n k )
k 0
y (n) nx(n) bx 3 (n 1)
N
y ( n) h N n ( k ) x ( n k )
k 0
23
x(n)
xx((nn)) xx((kk))((nnkk))
k k
y ( n)
y(n)=T[x(n)]
yy((nn))TT xx((kk))((nnkk))
kk
TT[[]]
Impulse Response
x(n)=(n)
TT[[]]
h(n)=T[(n)
]
Convolution Sum
(n)
TT[[]]
x(n)
y ( n)
h(n
)
y(n)
AAlinear
linearshift-invariant
shift-invariantsystem
systemisiscompletely
completely
characterized
characterizedby
byits
itsimpulse
impulseresponse.
response.
convolution
( n)
LTI system
unit impulse
H .
h( n) H ( n)
impulse response
y ( n)
h( k ) x ( n k ) x ( k ) h( n k ) h( n ) * x ( n) x ( n) * h( n)
1.2.1.2. Step
Response
u (n)
g ( n) H u ( n)
LTI system
unit step
g ( n)
step response
H .
unit-step
response
h(k )u (n k ) h(k )
31
Characterize a System
x(n)
h(n)
h(n)
x(n)*h(n)
y n x n h n
x i h n i
iN
for n M N
for n M N
x[N]
x[N+1]
x[N+2]
x[N+3]
h[M]
h[M+1]
h[M+2]
h[M+3]
x[N]h[M]
x[N+1]h[M]
x[N+2]h[M]
x[N+3]h[M]
x[N]h[M+1]
x[N+1]h[M+1]
x[N_2]h[M+1]
x[N]h[M+2]
x[N+1]h[M+2]
y[N+M+2]
y[N+M+3]
Discrete-Time Convolution
Array
+
y[N+M]
y[N+M+1]
Discrete-Time Convolution
Example
Find the output of a system if the input and impulse response are given as fo
x n n 1 2 n 3 n 1 4 n 2
h n n 2 5 n 1 3 n
Solution
Then, N = -1 Index of the first non-zero value of x[n]
M = -2 Index of the first non-zero value of h[n]
Next, write an array
Discrete-Time Convolution
Example
1
-1
-1
-2
-3
-4
10
15
20
12
10
17
29
12
Summation of columns
-1
Coefficients of x[n]
Coefficients of h[n]
First Row times (-1)
First Row times (5)
y n n 3 3 n 3 10 n 1 17 n 29 n 1 12 n 2
y ( n)
y ( n)
h( k ) x ( n k ) h( n) * x ( n)
xx((nn))**hh((nn)) hh((nn))**xx((nn))
x(n)
hh1(n)
1(n)
hh2(n)
2(n)
y(n)
x(n)
hh2(n)
2(n)
hh1(n)
1(n)
y(n)
x(n)
hh1(n)*h
2(n)
1(n)*h2(n)
y(n)
These
These systems
systems are
are identical.
identical.
hh1(n)
1(n)
x(n)
y(n)
hh2(n)
2(n)
x(n)
hh1(n)+h
2(n)
1(n)+h2(n)
y(n)
These
These two
two systems
systems are
are identical.
identical.
h(n) 0 for n 0
Then, the two equivalent forms of the convolution formula can be
obtained for the causal LTI system:
y ( n) h( k ) x ( n k )
k 0
x (k )h(n k )
48
h( k )
49
y
(
n
)
x that
y
and
, such
for all n. If for some bounded input sequence x(n) , the output y(n) is
unbounded (infinite), the system is classified as unstable.
50
Examples:
The stable systems:
y ( n)
h( k ) x ( n k )
y ( n) x ( n 2 ) 3 x ( n k )
k 0
y (n) 3n x 3 ( n 1)
(because a constant input x(n)=1 means y(n) = 3power n which is
unbounded)
51
1.3. Frequency-Domain
Representation of
Discrete
Signals and LTI Systems
x(n) e jn
complex-valued
exponencial
signal
LTI
system
h(n)
y ( n)
LTI system output
impulse response
y ( n)
h( k ) x ( n k )
52
y ( n)
h( k ) x ( n k )
j ( n k )
h
(
k
)
e
j k j n
j n
h
(
k
)
e
e
j k
h
(
k
)
e
y (n) e jn H (e j )
Frequency response:
H (e j )
j k
h
(
k
)
e
53