Animation of Graphical Convolution
This is a simple MATLAB demo to animate the process of convolution. It is meant to help student visualize how convolution works. When this script is run, two functions f(t) and go(t) are convolved and the output figure will show animated graphical convolution.
Laine Berhane Kahsay (2021). Animated Convolution (https://www.mathworks.com/matlabcentral/fileexchange/4616-animated-convolution), MATLAB Central File Exchange. Retrieved .
does good job
cool script for presentations.
% update shading on ovelapped region
rpos = [sx u_ym(1) max(0.0001, ex-sx) u_ym(2)-u_ym(1)];
set(sg, 'Position', rpos);
uistack(sg, 'bottom'); % <-- THIS LINE HERE
for the yellow block to be in the background again.
Does a nice job of helping to visualize what a convolution is.
hari om! hari om! what a nice piece of animation. may krishna bess you.
In the name of Allah the most Merciful and Mighty!
It is Really good to visualize the concept of convolution.
Alright, but the convolved region should be confined to only the non-zero parts of function overlap for better visualization.
It runs smooth on Matlab 7.1. I just checked it. Moreover the script does not need (or lack) any special function specific to Matlab 7.1 for its proper operation. For any case try to resize the figure's window size as it might be a display update problem which has nothing to do with the script.
Cannot get to run on MATLAB 7.1
Good program .. convolution is a little tricky to understand. But with the help of this animated tool it gets very easy to visualize the process.
Suggestion: It might help to indicate the various cases of covolution as they happen in the animation i.e. the sliding function is entering the static function, then it might either entirely contain the static function of be entirely covered by it .. so on.
Great for undergrads.
Useful for Undergraduate demonstration
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!