filmov
tv
How to Perform a Convolution in MATLAB | MATLAB Tutorial

Показать описание
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.
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
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!
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
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!
Комментарии