Help in using int() - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Help in using int()

apanimesh061apanimesh061 Posts: 2Member
[code]
clc
syms t w a
I = sqrt(-1);
f = @(t) 0.5*(((t+0.5*a)./abs(t+0.5*a)) - ((t-0.5*a)./abs(-t+0.5*a)));
pretty(f(t));
H = int(f(t).*exp(-I*w*t), t, -Inf, Inf);
pretty(H);
[/code]

I am getting NaN for 'H'.
I don't know where I am going wrong ???
I am basically try to calculate the Fourier Transform of f(t) !
Please help ....
Thnx
Sign In or Register to comment.