How to Perform a Convolution in MATLAB | MATLAB Tutorial

Phil Parisi
Phil Parisi
28.2 هزار بار بازدید - 3 سال پیش - Convolutions in MATLAB! How to
Convolutions in MATLAB! How to take the convolution conv() of two functions f(t)*x(t) to generate a system response. Discrete functions and smoothing curves discussed with examples.

🤝 Support me on Patreon! Patreon: philparisi_
🌱 Want to say thanks? https://buymeacoffee.com/philparisi_
🌏 More on Insta! Instagram: philparisi_
🔥 And the rest! https://linktr.ee/philparisi_

OVERVIEW
conv(a,b) is used to take the convolution of two functions. Be sure to scale your output! 3:06
If you want the output to have the same number of terms as 'a', use conv(a,b,'same').

CHAPTERS
0:00 Introduction
0:36 Part 1: Convolution of Two Functions f(t)*g(t)
1:57 Using conv()
2:25 Analyzing System Response
3:06 Scaling System Response
7:24 Part 2: Smoothing Curves
9:13 Using conv(a,b,'same')

MATH CORRECTIONS/COMMENTS on the video -- PLEASE READ!!
1. f(t)*g(t) is said "f convolved with g".
2. at 4:15 we see the max value of the output = max f(t) times max g(t) -- know that this does not always happen.
3. Scaling the t-axis / x-axis is not always straightforward. My scale and shift works in this case but doesn't apply to the general case.
4. at 5:50 you don't need the .* for (1:length(yt))*dt because this is a vector times a scalar.
5. at 6:50 take note I have only included the t2(1) term. However, for the general case, you may use t2(1) + t1(1) to account for your signals starting at different times. In this video, t1(1) was simply zero and thus adding only t2(1) worked.

MORE MATLAB
2D Plots How to Make a Plot and Graph in MATLA...
Advanced 2D Plots How to Make Advanced Plots in MATLAB ...
For Loops How to Make a For Loop in MATLAB | MA...
While Loops How to Make a While Loop in MATLAB | ...

LIKE AND SUBSCRIBE
If you received something of value from this video, please like and subscribe to support this channel :) as always comment below and I will answer your question!

🤝 Support me on Patreon! Patreon: philparisi_
🌱 Want to say thanks? https://buymeacoffee.com/philparisi_
🌏 More on Insta! Instagram: philparisi_
🔥 And the rest! https://linktr.ee/philparisi_
3 سال پیش در تاریخ 1400/07/03 منتشر شده است.
28,255 بـار بازدید شده
... بیشتر