Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to find Convolution integral using Symbolic Math Toolbox ?

Subject: How to find Convolution integral using Symbolic Math Toolbox ?

From: Animesh Pandey

Date: 21 Feb, 2011 09:22:25

Message: 1 of 3

I already have a code to convolve two signals using 'conv' & 'conv2'.
But I was asked to do that using Symbolic Math Toolbox !!!!!
I cannot understand how to begin even though I checked out a few tuts on the internet !!!
Please Help !!!!
The question is :
x (t) = exp(-3t) * u (t),
h (t) = u (t + 3)

Subject: How to find Convolution integral using Symbolic Math Toolbox ?

From: Torsten

Date: 21 Feb, 2011 10:23:34

Message: 2 of 3

On 21 Feb., 10:22, "Animesh Pandey" <apanimesh...@gmail.com> wrote:
> I already have a code to convolve two signals using 'conv' & 'conv2'.
> But I was asked to do that using Symbolic Math Toolbox !!!!!
> I cannot understand how to begin even though I checked out a few tuts on the internet !!!
> Please Help !!!!
> The question is :
> x (t) = exp(-3t) * u (t),
> h (t) = u (t + 3)

By using the 'int' - command ?

Best wishes
Torsten.

Subject: How to find Convolution integral using Symbolic Math Toolbox

From: Nasser M. Abbasi

Date: 21 Feb, 2011 10:37:03

Message: 3 of 3

On 2/21/2011 1:22 AM, Animesh Pandey wrote:
> I already have a code to convolve two signals using 'conv'& 'conv2'.
> But I was asked to do that using Symbolic Math Toolbox !!!!!
> I cannot understand how to begin even though I checked out a few tuts on the internet !!!
> Please Help !!!!
> The question is :
> x (t) = exp(-3t) * u (t),
> h (t) = u (t + 3)

Well, here is the answer using Mathematica:


In[21]:= f[x_]:=Exp[-3 x] UnitStep[x]
g[x_]:= UnitStep[x+3]

Integrate[f[t-x]*g[x],{x,-Infinity,Infinity}]

Out[23]= 1/3 (1-E^(-3 (3+t))) UnitStep[3+t]

Now, simply translate the above using Matlab
symbolic tool commands. This is left as an exercise
for you. help syms and help int()

--Nasser

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us