Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If...
-
Upload
elmer-potter -
Category
Documents
-
view
221 -
download
0
Transcript of Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If...
![Page 1: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/1.jpg)
Convolution in Matlab
• The convolution in matlab is accomplished by using “conv” command.
• If “u” is a vector with length ‘n’ and “v” is a vector with length ‘m’, then their convolution will be of length “n+m-1”
• Convolution is a commutative operation.
• Convolution in time domain corresponds to multiplication in frequency domain.
![Page 2: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/2.jpg)
Example
![Page 3: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/3.jpg)
• The impulse response and input to the system is used to calculate the system output, an example follows
![Page 4: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/4.jpg)
Visualization
![Page 5: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/5.jpg)
Frequency Domain Analysis
• The basic command to do the Fourier analysis is “fft”,
![Page 6: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/6.jpg)
Time domain and Frequency domain representation
![Page 7: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/7.jpg)
Convolution Using FFT
• In frequency domain convolution is merely multiplication of signals, this property is used to find response of systems
• Let x1 be an input signal to system with impulse response x2 , we take fft of x1 and x2 and multiply them to get the x3 the frequency domain output from the system.
• Ifft(x3) will give us the time domain output.
![Page 8: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/8.jpg)
Example
![Page 9: Convolution in Matlab The convolution in matlab is accomplished by using “conv” command. If “u” is a vector with length ‘n’ and “v” is a vector with length.](https://reader035.fdocuments.us/reader035/viewer/2022080901/56649f3e5503460f94c5ebde/html5/thumbnails/9.jpg)
Another Example of forming your own functions in matlab
• In this example our objective is to form a function which takes x1(input) and x2(impulse response) and returns both the frequency domain and time domain output