Discrete Signals Prof. Seungchul Lee Industrial AI Lab. Most slides from (edX) Discrete Time Signals and Systems by Prof. Richard G. Baraniuk 1
Discrete Time Signals β’ A signal π¦[π] is a function that maps an independent variable to a dependent variable. β’ We will focus on discrete-time signals π¦[π] β Independent variable is an integer: π β β€ β Dependent variable is a real or complex number: π¦ π β β or β 2
Plot Real Signals β’ Continuous signal 3
Plot Real Signals β’ Discrete signals 4
Discrete Signal Properties 5
Finite/Infinite Length Signals β’ An infinite-length discrete-time signal π¦[π] is defined for all π β β€ , i.e., ββ < π < β β’ An finite-length discrete-time signal π¦[π] is defined only for a finite range of π 1 β€ π β€ π 2 6
Periodic Signals β’ A discrete-time signal is periodic if it repeats with period π β β€ β’ The period π must be an integer β’ A periodic signal is infinite in length 7
Periodic Signals β’ Convert a finite-length signal π¦[π] defined for π 1 β€ π β€ π 2 into an infinite-length signal by either β (infinite) zero padding, or β periodization with period π 8
Modular Arithmetic β’ Modular arithmetic with modulus π takes place on a clock with π β Modular arithmetic is inherently periodic β’ Periodization via Modular Arithmetic β Consider a length- π signal π¦[π] defined for 0 β€ π β€ π β 1 β A convenient way to express periodization with period π is π§ π = π¦ π π β Important interpretation β’ Infinite-length signals live on the (infinite) number line β’ Periodic signals live on a circle 9
Finite-Length and Periodic Signals β’ Finite-length and periodic signals are equivalent β All of the information in a periodic signal is contained in one period (of finite length) β Any finite-length signal can be periodized β Conclusion: We will think of finite-length signals and periodic signals interchangeably 10
Finite-Length and Periodic Signals β’ Shifting infinite-length signals β Given an infinite-length signal π¦[π] , we can shift back and forth in time via π¦[π β π] β When π > 0 , π¦[π β π] shifts to the right (forward in time, delay) β When π < 0 , π¦[π β π] shifts to the left (back in time, advance) 11
Finite-Length and Periodic Signals β’ Shifting periodic signals β Periodic signals can also be shifted; consider π§ π = π¦ (π) π β Shift one sample into the future: π§ π β 1 = π¦ (π β 1) π 12
Shifting Finite-Length Signals β’ Consider finite-length signals π¦ and π§ defined for 0 β€ π β€ π β 1 and suppose π§ π = π¦[π β 1] β’ What to put in π§[0] ? What to do with π¦[π β 1] ? We do not want to invent/lose information β’ Elegant solution: Assume π¦ and π§ are both periodic with period π ; then π§ π = π¦ (π β 1) π β’ This is called a periodic or circular shift 13
Circular Time Reversal β’ Example with π = 8 14
Key Discrete Signals 15
Delta Function β’ Delta function = unit impulse = unit sample β’ The shifted delta function π[π β π] peaks up at π = π , (here π = 5 ) 16
Delta Function Sample β’ Multiplying a signal by a shifted delta function picks out one sample of the signal and sets all other samples to zero β’ Important: π is a fixed constant, and so π¦[π] is a constant (and not a signal) 17
Unit Step Function β’ The shifted unit step π£[π β π] jumps from 0 to 1 at π = π , (here π = 4 ) 18
Unit Step Selects Part of a Signal β’ Multiplying a signal by a shifted unit step function zeros out its entries for π < π 19
Real Exponential β’ The real exponential β’ For π > 1 , π¦[π] grows to the right β’ For 0 < π < 1 , π¦[π] shrinks to the right 20
Sinusoid Signals β’ There are two natural real-valued sinusoids: cos(ππ + π) and sin(ππ + π) β Frequency: π (units: radians/sample) β Phase: π (units: radians) β cos(ππ) β sin(ππ) 21
Sinusoid Signals β’ cos(0π) 2π β’ cos 10 π 4π β’ cos 10 π 6π β’ cos 10 π 10π β’ cos 10 π = cos ππ 22
Phase of Sinusoid 2π β’ cos 10 π 2π π β’ cos 10 π β 2 2π 2π β’ cos 10 π β 2 2π 3π β’ cos 10 π β 2 2π 4π 2π β’ cos 10 π β = cos 10 π 2 23
Complex Sinusoid 24
Complex Number β’ Adding 25
Eulerβs Formula 26
Complex Number β’ Multiplying 27
Plot Complex Signals β’ When π¦ π β β , we can use two signal plots β’ For π πππ phase 28
Geometrical Meaning of π ππΎ β’ π ππ : point on the unit circle with angle of π β’ π = ππ’ β’ π πππ’ : rotating on an unit circle with angular velocity of π β’ Question: what is the physical meaning of π βπππ’ ? 29
Sinusoidal Functions from Circular Motions 30
Sinusoidal Functions from Circular Motions 31
Discrete Sinusoids β’ Discrete Sinusoids 32
Visualize the Discrete Sinusoidals 33
Visualize the Discrete Sinusoidals 2π 8 3, π ππ0 β’ π = 34
Visualize the Discrete Sinusoidals 2π 8 3, π ππ1 β’ π = 35
Visualize the Discrete Sinusoidals 2π 8 3, π ππ2 β’ π = 36
Visualize the Discrete Sinusoidals 2π 8 3, π ππ3 β’ π = 37
Visualize the Discrete Sinusoidals 2π 8 3, π ππ4 β’ π = 38
Visualize the Discrete Sinusoidals 2π 8 3, π ππ5 β’ π = 39
Visualize the Discrete Sinusoidals 2π 8 3, π ππ6 β’ π = 40
Visualize the Discrete Sinusoidals 2π 8 3, π ππ7 β’ π = 41
Visualize the Discrete Sinusoidals 2π 8 3, π ππ8 β’ π = 42
Aliasing 43
Aliasing of Discrete Sinusoids β’ Consider two sinusoids with two different frequencies β’ But note that β’ The signal π¦ 1 and π¦ 2 have different frequencies but are identical β’ We say that π¦ 1 and π¦ 2 are aliases β’ This phenomenon is called aliasing 44
Alias-free Frequencies in Discrete Sinusoids β’ Alias-free frequencies β The only frequencies that lead to unique (distinct) sinusoids lie in an interval of length 2π β Two intervals are typically used in the signal processing 45
Low and High Frequencies in Discrete Sinusoids β’ Low frequencies: π closed to 0 and 2π β’ High frequencies: π closed to π and βπ 2π β’ cos 20 π 2π 18π β’ cos 9 Γ 20 π = cos 20 π 46
Low and High Frequencies in Discrete Sinusoids β’ Which one is a higher frequency? 47
Frequency in Discrete Sinusoids 48
Aliasing 49
Aliasing 50
Aliasing: Wheel 51
Visual Matrix of Discrete Sinusoids 52
Visual Matrix of Discrete Sinusoids 53
Complex Exponential Signals with Damping 54
Complex Exponential Signals β’ Consider the general complex number π¨ = π¨ π πβ π¨ , π¨ β β β π¨ = magnitude of π¨ β β π¨ = phase angle of π¨ β Can visualize π¨ β β as a point in the complex plane β’ Complex exponential is a spiral β π¨ π is a real exponential envelope β π πππ is a complex sinusoid β π¨ π is a helix 55
Damped Free Oscillation PHY245: Damped Mass On A Spring, https://www.youtube.com/watch?v=ZqedDWEAUN4 56
Plot Complex Signals β’ Rectangular form 57
Plot Complex Signals β’ Polar form 58
Signals are Vectors 59
Signals are Vectors β’ Vectors in β π or β π 60
Transpose of a Vector β’ the transpose operation π converts a column vector to a row vector (and vice versa) β’ In addition to transpose, the conjugate transpose (aka Hermitian transpose) operation πΌ takes the complex conjugate 61
Transpose in MATLAB β’ Be careful 62
Matrix Multiplication as Linear Combination β’ Linear Combination = Matrix Multiplication β’ Given a collection of π vectors π¦ 0, π¦ 1, β― π¦ πβ1 and scalars π½ 0, π½ 1, β― π½ πβ1 , the linear combination of the vectors is given by 63
Matrix Multiplication as Linear Combination β’ Step 1: stack the vectors π¦ π as column vectors into an π Γ π matrix β’ Step 2: stack the scalars π½ π into an π Γ 1 column vector β’ Step 3: we can now write a linear combination as the matrix/vector product β’ Note: the row- π , column- π element of the matrix π π,π = π¦ π [π] 64
Inner Product β’ The inner product (or dot product) between two vectors π¦, π§ β β π is given by β’ The inner product takes two signals (vectors in β π ) and produces a single (complex) number β’ Inner product of a signal with itself β’ Two vectors π¦, π§ β β π are orthogonal if 65
Orthogonal Signals β’ Two sets of orthogonal signals 66
Recommend
More recommend