Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Convolution using Symbolic func. toolbox !!!

600 views
Skip to first unread message

Animesh Pandey

unread,
Feb 24, 2011, 11:50:16 AM2/24/11
to
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 !!!!!

Think blue, count two.

unread,
Feb 25, 2011, 3:15:18 AM2/25/11
to
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.

0 new messages