04 Discrete-Time Signal and System
04 Discrete-Time Signal and System
TOPIC 2
Discrete-Time Signal and System
where =
=
, even though sin 0.3
0.3
0.1
10
11
= cos 2 + 2
= cos 2
=
13
0.1
where = =
= 0.1
where
= digital frequency
= analog frequency
Ts
__
- 2
T
s
0
- __
Ts
- __
Ts
__
Ts
Analog
2
__
Ts
15
0.1
if the
16
200
18
20
Linear Systems
A linear system obeys the homogeneity and superposition
principles.
Homogeneity means if the system output is given
input , then given input , the output is a .
Superposition principle states that if input 1 and
2 produces output 1 and 2 respectively, then
an input of 1 + 2 produce an output 1 + 2 .
Thus a linear system fed with the input a1 + 2 will
produce the output a1 + b2 .
21
Linear Systems
A useful property of linear systems is frequency
preservation. If the input contains several frequencies,
then the output will contain only those frequencies.
Non-linear system does not preserve frequencies.
E.g. = 2 . With = sin ,
1 cos 2
2
= =
2
which does not contain the original frequency .
22
23
24
25
= +1 1 + ,
=0
1
=
=0
1
=
=0
1
1
<
<
=0
29
30
+ 1 1 + 2 2 +
=
=
=
=0
31
-1
x[n]
-1
x[-1] [n+1]
1
x[0] [n]
-1
x[1] [n-1]
-1
n
32
Impulse Response
When the unit impulse, is inputted into an LTI system,
the output is called the natural or impulse response,
of the system.
LTI
System
0
33
Impulse Response
Example 3
Work out the first 4 sample values of the impulse response
from the filter shown.
x[n]
y[n]
+
_
-0.9
z-1
Solution
Here,
= 0.9 1 +
By setting = , the impulse response is
= 0.9 1 +
34
Impulse Response
The system is causal. Therefore,
0 = 0.9 1 + 0 = 0 + 1 = 1
Digital Convolution
Consider the digital signal shown:
2
0
x[n]
n
-1
1
0
h[n]
n
-1
36
Digital Convolution
The output due to the first non-zero component of is
weighted by 1 and shifted left one step because
of homogeneity and time invariance properties of LTI
systems.
The next output due to the second non-zero component of
is weighted by 0 with no time shift.
1
-1
x[-1] h[n+1]
x[0] h[n]
0
-2
37
Digital Convolution
Similarly the output due to 1 is 1 1 , and the
output due to the last non-zero input component is
2 2 .
Since the LTI system also obeys the superposition
principle, the total non-zero output due to is
= 1 + 1 + 0 + 1 1 + 2 2
38
Digital Convolution
1
x[-1] h[n+1]
-1
4
-1
x[0] h[n]
n
x[2] h[n-2]
1
-2
7
-2
6
3
1 1
x[1] h[n-1]
n
y[n]
0
0
-2
-3
39
Digital Convolution
In general, the output due to an input from an LTI system
with impulse response is just
=
=
Digital Convolution
Example 4
The impulse response of an LTI system is
0 = 2; 1 = 1; 2 = 1
and = 0 for all other .
Input is:
1 = 1; 0 = 2; 1 = 3; 2 = 1
and zero elsewhere.
Find the output 2 .
41
Digital Convolution
Solution
2 = 2
=1
= 1 3 + 0 2 + 1 1 + 2 0
= 1 0 + 2 1 + 3 1 + 1 2
= 1
42
Averaging Systems
Suppose we have a signal which fluctuates greatly, like
stock prices, and we want to smooth out the signal.
We can do this by using a moving average filter. For
example, a 5-point moving average filter will output
= 0.2 + 2 + + 1 + + 1 + 2
Averaging Systems
This filter can be obtained by time convolving the input
with the impulse response
0.2 2 2
=
0
44
Averaging Systems
Note that the filter is non-causal since it requires future
inputs for present output.
This is not a problem if we pre-record the data first, or we
delay the output until all the inputs required are available.
45
Properties of Convolution
Commutative: =
= =
=
Substituting = , we get
= =
=
46
Properties of Convolution
Distributive: 1 + 2
1 + 2
= 1 + 2
= 1 + 2
=
= 1 + 2
= 1 + 2
47
Properties of Convolution
Associative:
=
=
= =
48
Properties of Convolution
Substituting = ,
= =
=
=
49
Properties of Convolution
Two subsystems in parallel is equivalent to a single
system with impulse response the sum of the 2
subsystem impulse responses.
50
Transient Response
When a signal is applied to a system, the output will
experience a start-up transient before settling to the
steady-state response.
A stop transient is also generated when the input is
removed.
Transients are important because they mask the steadystate response, and may also be large enough to damage
the system.
51
Transient Response
If a system is described with a difference equation
=0
=0
Transient Response
If the system is assumed to be causal, then
=1
=0
= +
0
0
provided 0 0.
The output response consists of 2 components
= +
where = complementary or homogeneous solution
= particular solution
53
Transient Response
The transient or natural response is given by the
homogeneous solution or zero-input ( = 0) response.
= 0
=0
Transient Response
The transient response is caused by the non-zero initial
conditions in the system decaying to zero.
The steady-state response is due entirely to the input
signal.
Convolving the input with the impulse response of an LTI
system produces the total response from the system.
55
Transient Response
Example 5
A causal FIR discrete-time system is characterized by an
impulse response = 4, 5,6, 3 , 0 3 . Its
output samples for an input are then computed using
= 4 5 1 + 6 2 3 3
For a unit step sequence input,
0 = 4 0 = 4
1 = 4 1 5 0 = 1
2 = 4 2 5 1 + 6 0 = 5
56
Transient Response
3 = 4 3 5 2 + 6 1 3 0 = 2
4 = 4 4 5 3 + 6 2 3 1 = 2
5 = 4 5 5 4 + 6 3 3 2 = 2