5.0

5.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 10.4 KB File ID: #25199
image thumbnail

Graphical Demonstration of Convolution

by Teja Muppirala

 

01 Sep 2009 (Updated 23 Sep 2009)

An interactive program that provides graphical insight into how convolution operators work.

| Watch this File

File Information
Description

As one would learn in a basic signal processing / controls / dynamical systems class, the multiplication by an LTI transfer function F(s) in the frequency domain is the same operation as convolution with f(t) in the time domain.

While the equation for convolution of two functions is simple, it took me a while before I understood what that integral really means in a graphical, intuitive way.

This program displays the convolution of two functions, specified either in the time domain or frequency domain (if the Control System Toolbox is installed), in what I hope is an easy-to-understand manner.

Limitations: Impulses are not currently supported, meaning transfer functions that are not strictly proper will have their direct feedthrough part ignored. Put more simply,
If you specify F(s) = (s^n + ... ) / (s^m + ... ) then
n should be less than m.

MATLAB release MATLAB 7.8 (R2009a)
Other requirements Control System Toolbox is required to input transfer functions (as opposed to time domain functions)
Tags for This File  
Everyone's Tags
convolution, demo, graphical, gui, interactive, transfer function
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
25 Jan 2013 Kevin BolĂ­var

good

29 Sep 2009 Teja Muppirala

It turned out that there was an unnecessary AXES command in the slider callback that was causing the GUI to crash when it was called repeatedly. That should be fixed now.

17 Sep 2009 Teja Muppirala

Hmmm. If I move the slider for a long time (about 15 seconds), the GUI fails.
Does this happen to anyone else?
The way I rigged the slider to update dynamically upon dragging is a little shady, and therein may lie the problem.
I'll have to check on this...

Updates
14 Sep 2009

Now correctly checks to see if the control system toolbox is installed, and also fixed some issues with infs/nans

15 Sep 2009

Fixed various bugs involving nans/infs and checking for the Control System Toolbox

23 Sep 2009

Removed a couple of unnecessary AXES commands which were causing the GUI to crash after some time

Contact us