Signal Spectra and Signal Processing (SSPL01E)
Digital Signal Processing (SSPL01E)
Lecture 2
Eng’r Rianne Arne S. Reyes
Discrete Time Signals
Continuous Time Signal vs Discrete Time Signal
Continuous Time Signal Discrete Time Signal
3
Discrete Time Signals
• A discrete-time signal is a indexed sequence of real or complex numbers
• Function of an integer-valued variable, n, that is denoted by x(n)
• Often derived by sampling a continuous-time signal with an ADC
> Sample for a continuous-time signal x(t) that is sampled at a rate of Fs = l/Ts samples
per second produces the sampled signal x(n), which is related to xa(t) as follows
4
Other Representations of Discrete Time Signals
• Functional Representation
• Tabular Representation
5
Other Representations of Discrete Time Signals
• Sequence Representation (infinite duration)
time origin (n=0) X(n) = 0, when n<0
• Sequence Representation (finite duration)
6
Elementary Discrete Signals
• Unit Sample Sequence - δ(n)
> Signal is Zero everywhere except n=0
> Also called “unit impulse”
7
Elementary Discrete Signals
• Unit Step Signal - μ (n)
> Signal is Zero when n<0
8
Elementary Discrete Signals
• Unit Ramp Signal - μr (n)
> Signal is linearly proportional to n when n ≠ 0
9
Elementary Discrete Signals
• Exponential Signal
Real Values of n
10
Elementary Discrete Signals How to Plot:
Plot Real Component and
• Exponential Signal Imaginary Component Separately
Complex Values of n Real Component of a
Complex Valued
Exponential Signal
Imaginary Component
of a Complex Valued
Exponential Signal
11
Classification of Discrete Time Signals
• The mathematical methods employed in the analysis of discrete
time signals and systems depends on the characteristics of the
signals
• Periodic and Aperiodic Sequence
• Symmetric Sequence (even) and Antisymmetric Sequence (odd)
12
Classification of Discrete Time Signals
Periodic and Aperiodic Sequence
• Periodic: Sequence repeats itself every period (N)
𝑥 𝑛+𝑁 =𝑥 𝑛 True 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑛
• Aperiodic: does not meet above criteria
13
Classification of Discrete Time Signals
Periodic Sequence Calculation
• An x1(n) with a period of N1, plus x2(n) with a period of N2
What is the period of
x n = 𝑥1 𝑛 + 𝑥2 𝑛
𝑁1 𝑁2
𝑁=
gcd(𝑁1, 𝑁2)
gcd = greatest common divisor
14
Classification of Discrete Time Signals
Symmetric (even) and Antisymmetric Sequence (odd)
• Even : 𝑥 𝑛 = 𝑥(−𝑛)
• Odd: 𝑥 𝑛 = −𝑥(−𝑛)
15
Signal Manipulation
Discrete Time Signal
Time Manipulation (delaying/advancing) - Shifting
• A signal x(n) may be shifted in time by replacing the
independent variable (n) by (n-k); k is an integer
• +k delay the signal by k units in time
• -k advances the signal by |k| units in time
• Example: x(n)
19
Time Manipulation (delaying/advancing) - Shifting
• Example: x(n)
x(n-3) x(n+2)
20
Folding of Signal - Reversal
• Replacing n by –n; reflection at time origin n=0
• Example: x(n)
21
Folding of Signal - Reversal
• Example: x(n)
x(-n) y(n) = x(-n+2)
22
Time Scaling/Down Sampling
• Replacing n by µn; reflection at time origin n=0
• Taking every µ sample
• Example: x(n)
23
Time Scaling/Down Sampling
• Example: x(n)
y(0) = x(0)
y(n) = x(2n) y(1) = x(2)
y(2) = x(4) ….
y(-1) = x(-2)
y(-2) = x(-4)
y(-3) = x(-6) ….
24
Basic Operations on Signal
Discrete Time Signal
Amplitude Scaling, Addition, & Multiplication
• Amplitude Scaling of a signal is accomplished by multiplying the
value of every signal by sample A
y(n) = A x(n)
• Addition of two signals x1(n) and x2(n) whose value at any
instant is equal to the sum of the values for that instant
y(n) = x1(n) + x2(n)
• Multiplication of two signals x1(n) and x2(n) whose value at any
instant is equal to the product of the values for that instant
y(n) = x1(n) * x2(n)
26
Examples:
27
28