Slide 2 Discrete Time Signals
Slide 2 Discrete Time Signals
Discrete
n=0:1/8:1
0 0.125 0.250 0.375 0.50 0.62 0.750 0.8750 1
xn=A*sin(2*pi*F*n)
x(n)=0,3.5,5,3.53,0,-3.53,-5,
-3.5 0
n= 0 1 2 3 4 5 6 7 8
x[n]=[0 3.5 5 3.5 0 -3.5 -5 -3.5 0 ]
DISCRETE-TIME SIGNALS
Functional representation :
X(n ) =
+n
Tabular representation :
𝑛 … … … . − 2 − 1 0 12 3 4 5 … …
𝑥 (𝑛) … … … 0 0 0 1 4 1 10 … …
Representation Digital Signal
Sequence representation :
An infinite duration signal with a time origin (n=0) indicated by the
symbol ↑ is represented as
X(n)={………..0,0,1,4,1,1,1,4…..}
Graphical representation :
+n
a. 1 b. 0 c. 0
Scaled Unit Impulse Function
Example: Draw the following signal:
x[n] = 4δ[n]
Scaled Unit Impulse Function
Example: Draw the following signal:
x[n] = -2δ[n]
Shifted Unit Impulse Function
Example: Draw the following signals:
a) x[n] = δ[n - 2]
b) x[n] = δ[n + 2]
Shifted Unit Impulse Function
Example: Draw the following signal:
x[n] = δ[n - 3]
n=3
δ[3 - 3]
δ[0]
Unit Impulse Function
Example: write a function to describe the signal
in the figure.
x = (k==0); k
0.6
stem(k, x) 0.4
xlabel('k') 0.2
ylabel('\delta_k')
title('Unit impulse sequence') 0
axis([k1 k2 -0.1 1.1]) -5 0 5 10
k
Some Elementary Discrete-Time Signals
Answers
b) u[-1] = 0
c) u[0] = 1
d) u[1] = 1
Scaled Unit Step Function
Example: Draw the signal x[n] = 3u[n]
Shifted Unit Step Function
Example: Draw the signal x[n] = u[n - 2], and x[n] =
u[n + 2]
Unit Step Function
Example: Draw the signal x[n] = u[-n]
Unit Step Function
Example: Draw the signal x[n] = u[n - 3]
Unit Step Function
Example: Draw the signal x[n] = u[3 - n]
Unit Step Function
Example: Draw the signal
x[n] = u[n] + 2u[n - 2]
Unit Step Function
Example: Draw the signal
x[n] = u[n] - u[n - 3]
Unit Step Function
Example: A digital signal is described as x[n] = 4(u[n]
- u[n - 1]).
Write the function that describes x[n-3].
Answer
Substituting n = (n – 3) gives
x = (k>=0); 0.6
uk
stem(k, x) 0.4
0.2
xlabel('k')
ylabel('u_k')
0
title('Unit step sequence')
axis([k1 k2 -0.1 1.1]) -5 0 5 10
k
Connection b/w Impulse and Step Functions
25
Connection b/w Impulse and Step Functions
27
Some Elementary Discrete-Time Signals
Exponential signals ?
The exponential signal is the sequence of the form
X(n)=
If the parameter is a real, then x(n) is a real signal.
Exponential signals ?
x[n] = Aejβn
32
Complex Exponential Function
33
Sinusoidal Sequence
The sinusoidal functions take the form
x1[n] = sin(n2π/9)
36
Periodicity of Digital Sinusoidal Sequence
Solution
W = 2,
2p/W = π, this number is irrational and cannot be expressed in term of
ratio of two integers. Therefore this digital sequence is not periodic.
Periodicity of Digital Sinusoidal Sequence
Solution
W = 4π/5,
2p/W = 5/2, this number is rational and can be expressed in term of ratio
of two integers N/M. Therefore this digital sequence is periodic. Where N =
5 means sequence repeats every 5 samples, and M = 2 means these 5
samples are collected over 2 complete cycles of the analog signal being
sampled.
Notation for Digital Signals
A stream of digital codes is presented to a digital signal
processor for processing.
Magnitude:
A
Classification of Discrete-Time Signals
we classify discrete-time signals according to a number of
different characteristics.
ENERGY SIGNAL :
The energy of a signal x(n) is denoted as E or defined as ,
E
The energy of a signal can be finite or infinite. The signal x(n) is called energy signal if
its energy is finite.
Many signals having infinite energy have a finite average power, the average power of a
discrete signal is determined by.
POWER SIGNAL
the average power of a discrete signal is determined by.
𝑵
𝟏 𝟐
𝑷 ≡ 𝒍𝒊𝒎 ∑ | 𝒙( 𝒏)|
𝒏 → ∞ (𝟐 𝑵 +𝟏) 𝒏=− 𝑵
1
𝑥 𝑒 ( 𝑛 ) = [ 𝑥 ( 𝑛 )+ 𝑥 (−𝑛)]
2
Discuss symmetric(even) signal and
asymmetric(odd) signal?
Asymmetric(0dd) signal :-
For Example
Signal x[n-2], shifts x[n] two steps to the right
Signal x[n+3], shifts x[n] three steps to the left
Signal x[2n], selects every other sample from x[n]
Signal x[3n], selects every third sample
54
Notation for Digital Signals
Example: Find the Following:
a) x[0] = 0.25
b) x[5] = 0.5
55
Notation for Digital Signals
Example: Find the Following:
a) x[0] = 0.25
b) x[5] = 0.5
c) x[n-1]
56
Notation for Digital Signals
Example: Find the Following:
a) x[0] = 0.25
b) x[5] = 0.5
c) x[n-1]
d) x[n-2]
57
Notation for Digital Signals
Example: Find the Following:
a) x[0] = 0.25
b) x[5] = 0.5
c) x[n-1]
d) x[n-2]
e) x[2n]
58
Notation for Digital Signals
Example: Find the Following:
a) x[0] = 0.25
b) x[5] = 0.5
c) x[n-1]
d) x[n-2]
e) x[2n]
f) x[3n]
59
Transformation of the independent variable (time).
k is an integer.
If k positive integer, shift delay signal by k units.
If k negative integer, time shift an advance the signal by k units in
time.
Example:2.1.2
Example 2.1.3
Show the graphica1 representation of the signal x ( - n ) and x ( - n + 2 ) .
where x ( n ) is the signal illustrated in Fig. 2.10a.
Transformation of the independent variable
(time).
Time Scaling Or Down-sampling
Example Show the graphical representation of the signal y(n) = x(2n) , where x(n) is
the signal illustrated in Fig. 2.11a.
64
Composite Functions
Example: Draw a signal x[n] = e-2nu[n]
First draw two basic signals (e-2n, u[n]) and then multiply as shown
in the figure.
The u[n] has the effect of turning on the other function at n = 0.
The u[n] is zero for n < 0, so x[n] is also for n < 0.
The u[n] has a value of 1 for n ≥ 0, so x[n] is the same as e-2n for n
≥ 0.
65
Composite Functions
Example: Draw a signal x[n] = 3sin(nπ/5 - 1)u[n]
First draw two basic signals and then multiply
as shown in the figure.
66
Generation of Digital Signals
Example:
Solution
a)
67
Generation of Digital Signals
b) The first five sample values for part (1) are
calculated and plotted in the Figure.
68
Generation of Digital Signals
b) The first eight sample values for part (2) are
calculated and plotted in the Figure.
69
System
y[n] T {x[n]}
x[n] T{.} y[n]
It is like
A linear system is one that satisfies the response of the system to a weighted
sum of signals (inputs) be equal to the corresponding weighted sum of the
responses (outputs) of the system to each of the individual input signals.
79
Linear System
80
Linear System
81
Linear System
If a system produces a nonzero output with a zero input, then the system is
called non-linear system
Example:
y1(n) = Ax1(n) + B
Where, x1(n) is the input, y1(n) is the output,
A and B are the constants.
82
Time-Invariant System
83
Time-Invariant System
84
Time-Invariant System
85
Time-Invariant System
Example 1:
Mn=1
n0=2
y(mn) = x(mn)
Example 2:
87
Static or Memoryless System:
discrete – time system is called Static or Memoryless
A
system if the output y[n] at every value of n depends
only on the input x[n] at the same value of n. but not on
past or future samples of the input
If the output of a system at time n is completely determined by the input samples in the interval from n
– N to n (N>0), the system is said to have memory of duration N.
If N = 0. the system is static.
If 0 < N <,the system is said to have finite memory.
Whereas if , the system is said to have infinite memory.
Example
are both static or memoryless. Note that there is no need to store any of the past inputs or outputs in
order to compute the present output
are dynamic systems or systems with memory. The systems described by (2.2.9) and (2.2.10) have finite memory,
whereas the system described by (2.2.11) has infinite memory
91
Causal System
ution
Causal
Non-causal
92
Non Causal System
• A system is said to be non-causal if the output of
the system at any time n [i.e. y(n)] depends on
present , past inputs and future inputs [i.e. x(n),
x(n-1), x(n-2), x(n-3), .... and x(n+1), x(n+2),
x(n+3), ...... .].