I am trying to calculate the convolution of
x(t) = 1, -1<=t<=1
x(t) = 0, outside
with itself using the definition.
http://en.wikipedia.org/wiki/Convolution
I know how to do using the Matlab function conv, but I want to use the integral definition. My knowledge of Matlab and WolframAlpha is very limited.
I am still learning Mathematica myself, but here is what I came up with..
First we define the piecewise function (I am using the example from the Wikipedia page)
Lets plot the function:
Then we write the function that defines the convolution of
fwith itself:and the plot:
EDIT
I tried to do the same in MATLAB/MuPad, I wasn’t as successful:
However when I try to compute the integral, it took almost a minute to return this:
the plot (also took too long)
Note the same could have been done from inside MATLAB with the syntax: