Sketch g with Matlab: Convolution of 3cos(10pi t) & delta(t+1/10)

AI Thread Summary
The discussion revolves around the request for MATLAB code to perform the convolution of the function g = 3cos(10pi t) with the delta function delta(t + 1/10). The user expresses frustration after reviewing existing resources without finding a clear solution. Other participants point out that there is sample code available in the referenced links, which includes function establishment, convolution execution, and result display. The emphasis is on providing a complete code example to facilitate understanding and implementation. A straightforward code snippet is suggested as a helpful resource for the user.
O.J.
Messages
198
Reaction score
0

Homework Statement



Sketch this function in matlab

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



Homework Equations





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
 
Physics news on Phys.org
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
 
Last edited by a moderator:
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?
 
O.J. said:
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?

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.
 
Back
Top