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:
Convolution using Symbolic func. toolbox !!!

Subject: Convolution using Symbolic func. toolbox !!!

From: Animesh Pandey

Date: 24 Feb, 2011 16:50:16

Message: 1 of 2

syms t tau
f = heaviside(t)-heaviside(t-1);
z = int(subs(f,tau)*subs(f,t-tau),tau,-inf,inf);
z = simplify(z);
figure(1)
ezplot(f)
figure(2)
ezplot(z)
%%-------------------------------------
syms t tau
f = 1/(1 + t^2);
z = int(subs(f,tau)*subs(f,t-tau),tau,-inf,inf);
z = simplify(z);
figure(1)
ezplot(f)
figure(2)
ezplot(z)

The first code is giving errors but the second one does not give any errors ??
Could anyone tell me what is the mistake ??

I also want to know how to use symbols to generate an impulse function !!!!!

Subject: Convolution using Symbolic func. toolbox !!!

From: Think blue, count two.

Date: 25 Feb, 2011 08:15:18

Message: 2 of 2

On 24/02/11 10:50 AM, Animesh Pandey wrote:
> syms t tau
> f = heaviside(t)-heaviside(t-1);
> z = int(subs(f,tau)*subs(f,t-tau),tau,-inf,inf);
> z = simplify(z);
> figure(1)
> ezplot(f)
> figure(2)
> ezplot(z)
> %%-------------------------------------
> syms t tau
> f = 1/(1 + t^2);
> z = int(subs(f,tau)*subs(f,t-tau),tau,-inf,inf);
> z = simplify(z);
> figure(1)
> ezplot(f)
> figure(2)
> ezplot(z)
>
> The first code is giving errors but the second one does not give any
> errors ??
> Could anyone tell me what is the mistake ??

It would help if you indicated the error you are encountering and at
which line.

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