1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Convolution in matlab

  1. Mar 28, 2009 #1
    1. The problem statement, all variables and given/known data

    Sketch this function in matlab

    g = 3cos (10pi t) convolved with delta(t+1/10)



    2. Relevant equations



    3. The attempt at a solution



    I just need the full code to do it as an example so that I can follow up easily. thanks
     
  2. jcsd
  3. Mar 28, 2009 #2

    MATLABdude

    User Avatar
    Science Advisor

    The "Similar Threads" section at the bottom of pages on this website frequently contain helpful information. For instance, this one:
    https://www.physicsforums.com/showthread.php?t=298691

    There's also this page, which might be of some interest to you:
    http://www.eece.unm.edu/signals/signals/Discrete_Convolution/discrete_convolution.html [Broken]
     
    Last edited by a moderator: May 4, 2017
  4. Mar 28, 2009 #3
    Believe me, I've gone throught those two pages before I post this. I have the second link even bookmarked. It still didnt help me. Can some1 just show me how the code should be written?
     
  5. Mar 29, 2009 #4

    MATLABdude

    User Avatar
    Science Advisor

    Well, there's sample code at the bottom of that second link. The first part (of the snippet) is establishing the functions, the stuff in the middle is the actual convolution (note how short it is), and the last bit is displaying the results.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Convolution in matlab
  1. Convolution of delta (Replies: 7)

  2. Convolution shortcut? (Replies: 67)

Loading...