Systems Prof. Seungchul Lee Industrial AI Lab. Most slides from (edX) Discrete Time Signals and Systems by Prof. Richard G. Baraniuk 1
Systems β’ A discrete-time system πΌ is a transformation (a rule or formula) that maps a discrete- time input signal π¦ into a discrete-time output signal π§ 2
Example: Systems 3
Linear Systems β’ A system πΌ is linear if it satisfies the following two properties: β Scaling: β Additivity: 4
Linear Systems and Matrix Multiplication β’ Matrix multiplication (aka linear combination) is a fundamental signal processing system β’ Matrix multiplications are linear systems where β π,π = πΌ π,π represents the row- π , column- π entry of the matrix πΌ β’ All linear systems can be expressed as matrix multiplications 5
Matrix Multiplication and Linear Systems in Pictures β’ System output as a linear combination of columns β’ System output as a sequence of inner products 6
Time-Invariant Systems β’ For infinite-length signals β A system πΌ processing infinite-length signals is time-invariant (shift-invariant) if a time shift of the input signal creates a corresponding time shift in the output signal β’ For finite-length signals β A system πΌ processing infinite-length signals is time-invariant (shift-invariant) if a circular time shift of the input signal creates a corresponding circular time shift in the output signal 7
Linear Time-Invariant (LTI) Systems β’ A system πΌ is linear time-invariant (LTI) if it is both linear and time-invariant β’ We will only consider Linear Time-Invariant (LTI) systems. 8
Matrix Multiplication and LTI Systems (Infinite -Length Signals) β’ When the linear system is also shift invariant, πΌ has a special structure β’ Linear system for infinite-length signals can be expressed as β’ Enforcing time invariance implies that for all π β β€ β’ Change of variables: π β² = π β π and π β² = π β π 9
Matrix Multiplication and LTI Systems (Infinite -Length Signals) β’ We see that for an LTI system β’ Entries on the matrix diagonals are the same - Toeplitz matrix 10
Matrix Multiplication and LTI Systems (Infinite -Length Signals) β’ All of the entries in a Toeplitz matrix can be expressed in terms of the entries of the β 0-th column β Time-reversed 0-th row β’ Row- π , column- π entry of the matrix 11
Matrix Multiplication and LTI Systems (Infinite -Length Signals) β’ Note the diagonals ! 12
Matrix Multiplication and LTI Systems (Finite-Length Signals) β’ Linear system for signals of length π can be expressed as β’ Enforcing time invariance implies that for all π β β€ β’ Change of variables: π β² = π β π and π β² = π β π 13
Matrix Multiplication and LTI Systems (Finite-Length Signals) β’ We see that for an LTI system β’ Entries on the matrix diagonals are the same + circular wraparound - Circulent matrix 14
Matrix Multiplication and LTI Systems (Finite-Length Signals) β’ All of the entries in a circulent matrix can be expressed in terms of the entries of the β 0-th column β Time-reversed 0-th row β’ Row- π , column- π entry of the matrix 15
Matrix Multiplication and LTI Systems (Finite-Length Signals) β’ Note the diagonals and circulent shifts ! 16
Impulse Response 17
Impulse Response β’ We will Illustrate it with an infinite-length signal β’ The 0-th column of the matrix πΌ has a special interpretation β’ Compute the output when the input is a delta function (impulse) β’ This suggests that we call β the impulse response of the system β’ Output of system to delta function (impulse) is β . So, We call β the impulse response of the system 18
Impulse Response β’ From β , we can build matrix πΌ β Columns/rows of πΌ are the shifted versions of the 0-th column/row β β contains all the information of the LTI system β’ LTI systems are Toeplitz matrices (infinite-length signals) β Entries on the matrix diagonals are the same β’ Let the input π[π] and compute π§[π] β’ The impulse response characterizes an LTI system (that is, carries all of the information contained in matrix πΌ ) 19
Examples (Infinite-Length Signals) β’ Impulse response of the scaling system 20
Examples (Infinite-Length Signals) β’ Impulse response of the shift system 21
Examples (Infinite-Length Signals) β’ Impulse response of the moving average system 22
Examples (Infinite-Length Signals) β’ Impulse response of the recursive average system 23
Examples (Finite-Length Signals) β’ Entries on the matrix diagonals are the same + circular wraparound 24
Examples (Finite-Length Signals) β’ Impulse response of the shift system 25
Examples (Finite-Length Signals) β’ Impulse response of the moving average system 26
Examples (Finite-Length Signals) β’ Impulse response of the recursive average system 27
Time Response to Arbitrary Input: Convolution 28
Convolution β’ Convolution is defined as the integral of the product of the two signals after one is reversed and shifted β’ Output π§[π] came out by convolution of input π¦[π] and system β[π] β Time reverse the impulse response β and shift it π time steps to the right (delay) β Compute the inner product between the shifted impulse response and the input vector π¦ 29
Convolution For Infinite-Length Signals β’ Toeplitz Matrices β’ It is an inner product of β vectors and π¦ 30
Convolution For Infinite-Length Signals β’ Convolution is product of matrix πΌ and π¦ 31
Convolution using Toeplitz Matrix β’ LTI systems are Toeplitz matrices (infinite-length signals) β Entries on the matrix diagonals are the same 32
Superposition (Linear) and Time-Invariant β’ Think about convolution in time β Break input into additive parts and sum the responses to the parts Source: Prof. Denny Freeman at MIT 33
Superposition (Linear) and Time-Invariant β’ Think about convolution in time β You are standing at time π Source: Prof. Denny Freeman at MIT 34
Convolution β’ If a system is linear and time-invariant (LTI) then its output is the sum of weighted and shifted unit- sample responses. Source: Prof. Denny Freeman at MIT 35
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input Source: Dr. Francois Fleuret at EPFL 36
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input 1 3 0 -1 h[-n] Output Source: Dr. Francois Fleuret at EPFL 37
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input 1 3 0 -1 h[-n] Output 7 Source: Dr. Francois Fleuret at EPFL 38
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input 1 3 0 -1 h[-n] Output 7 9 Source: Dr. Francois Fleuret at EPFL 39
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input 1 3 0 -1 h[-n] Output 7 9 12 Source: Dr. Francois Fleuret at EPFL 40
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input 1 3 0 -1 h[-n] Output 7 9 12 2 Source: Dr. Francois Fleuret at EPFL 41
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input 1 3 0 -1 h[-n] Output 7 9 12 2 -1 Source: Dr. Francois Fleuret at EPFL 42
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input 1 3 0 -1 h[-n] Output 7 9 12 2 -1 0 Source: Dr. Francois Fleuret at EPFL 43
1D Convolution 1 3 2 3 0 -1 1 2 2 1 Input w 1 3 0 -1 h[-n] Output 7 9 12 2 -1 0 6 Source: Dr. Francois Fleuret at EPFL 44
Structure of Convolution Source: Prof. Denny Freeman at MIT 45
Structure of Convolution Source: Prof. Denny Freeman at MIT 46
Structure of Convolution Source: Prof. Denny Freeman at MIT 47
Structure of Convolution Source: Prof. Denny Freeman at MIT 48
Structure of Convolution Source: Prof. Denny Freeman at MIT 49
Structure of Convolution Source: Prof. Denny Freeman at MIT 50
Structure of Convolution Source: Prof. Denny Freeman at MIT 51
Structure of Convolution Source: Prof. Denny Freeman at MIT 52
Structure of Convolution Source: Prof. Denny Freeman at MIT 53
Structure of Convolution Source: Prof. Denny Freeman at MIT 54
Structure of Convolution Source: Prof. Denny Freeman at MIT 55
Structure of Convolution Source: Prof. Denny Freeman at MIT 56
Structure of Convolution Source: Prof. Denny Freeman at MIT 57
Structure of Convolution Source: Prof. Denny Freeman at MIT 58
Graphical Illustration Source: Applied Digital Signal Processing, Theory and Practice 59
Discrete-Time Convolution: Summary β’ Representing an LTI system by a single signal β’ Unit-impulse response β[π] is a complete description of an LTI system β’ Given β[π] , one can compute the response to any arbitrary input signal π¦[π] 60
Convolution: Commutative β’ Convolution is commutative β Signal = System 61
Convolution in MATLAB β’ For finite-length signals 62
Convolution in MATLAB β’ For finite-length signals 63
Convolution Function β’ You have to include conv_m function file in the path 64
Convolution in MATLAB 65
Recommend
More recommend