dsp2
dsp2
1 / 28
Discrete time signal
2 / 28
Discrete time sequence
↑
where ↑ denotes value of signal x(n) at n = 0
3 / 28
Discrete time sequence
4 / 28
Discrete time sequence
5 / 28
Discrete time sequence
N1 ≤ n ≤ N2 (4)
N = N2 − N1 + 1 (5)
6 / 28
Discrete time sequence
7 / 28
Basic operations
8 / 28
Basic operations
Signal Multiplication-
9 / 28
Examples
Given 2 signals,
w(n) = {1.5, 2, 3.4, −5, 10}
↑
10 / 28
Examples
Solution:
y1 (−1) = w1 (−1) + x1 (−1) = 1.5 + 2.2 = 3.7
y1 (0) = w1 (0) + x1 (0) = 2 + 3 = 5
y1 (1) = w1 (1) + x1 (1) = 3.4 + 2 = 5.4
y1 (2) = −0.8
y1 (3) = 18
11 / 28
Examples
Solution:
y2 (−1) = 3 + x2 (−1) = 3 + 2.2 = 5.2
y2 (0) = 3 + x2 (0) = 3 + 3 = 6
y2 (1) = 5
y2 (2) = 7.2
y2 (3) = 11
12 / 28
Examples
Solution:
y3 (−1) = w3 (−1)x3 (−1) = 1.5 × 2.2 = 3.3
y3 (0) = w3 (0)x3 (0) = 2 × 3 = 6
y3 (1) = w3 (1)x3 (1) = 3.4 × 2 = 6.8
y3 (2) = −21
y3 (3) = 80
13 / 28
Transformation of independent variable
n0 → shifting factor
+ → advanced-left shift
− → delayed-right shift
14 / 28
Transformation of independent variable
Time shifting
Example: If
x(n) = {2, 3, 2, 1, 3}
↑
Find and sketch (a) x(n − 1) (b) x(n + 1) if
Solution:
x(0)=2;
x(1)=1;
x(2)=3;
x(-1)=3;
x(-2)=2;
15 / 28
Transformation of independent variable
Time shifting
2.5
2
x(n)
1.5
0.5
0
−2 −1 0 1 2
n
16 / 28
Transformation of independent variable
Time shifting
2.5
2
x(n−1)
1.5
0.5
0
−1 0 1 2 3
n
x(n − 1) = {2, 3, 2, 1, 3}
↑ 17 / 28
Transformation of independent variable
Time shifting
2.5
2
x(n+1)
1.5
0.5
0
−3 −2 −1 0 1
n
x(n − 1) = {2, 3, 2, 1, 3}
↑ 18 / 28
Transformation of independent variable
Time shifting
0.8
0.6
0.4
0.2
0
−1 0 1 2 3 4 5
t
19 / 28
Transformation of independent variable
Time scaling
y(n) = x(Mn)
↓M
20 / 28
Transformation of independent variable
Decimation
21 / 28
Transformation of independent variable
Time scaling
Interpolation
Increasing the signal length by inserting zeros between signal
samples
Interpolation operator by integer L on a signal x(n) consist of
inserting (L − 1) zero-valued samples between each two
consecutive samples of x(n)
22 / 28
Transformation of independent variable
Interpolation
Interpolation
Increasing the signal length by inserting zeros between signal
samples
Interpolation operator by integer L on a signal x(n) consist of
inserting (L − 1) zero-valued samples between each two
consecutive samples of x(n)
23 / 28
Interpolation
Example: Let
Solution:
z(n) = x( n3 )
z(−2) = x( −2
3 )=0
z(−1) = x( −1
3 )=0
z(0) = x( 03 ) = 4
z(1) = x( 13 ) = 0
z(2) = x( 23 ) = 0
24 / 28
Interpolation
z(3) = x( 33 ) = −2
z(4) = x( 43 ) = 0
z(5) = x( 53 ) = 0
z(6) = x( 63 ) = 5
25 / 28
Multiple choice questions
1 Time-shifting
2 Decimation
3 Interpolation
26 / 28
Multiple choice questions
1 Time-shifting
2 Decimation
3 Interpolation
Answer (2)
27 / 28
Thank You
28 / 28