Fourier Transform e^(-t)

Hi. Why in MATLAB, why do we have to add a Heaviside function when doing Fourier transforms? For example when doing a Fourier transform of something simple, e.g. e^(-t), I get an error.
.
%%Error code
syms x w X
f = exp(-x)
X=fourier(f, x, w)
ezplot(X)
.
To fix this I need to write f = exp(-x)*heaviside(x);
Why is this?

回答 (3 件)

Torsten
Torsten 2015 年 4 月 10 日

0 投票

Because your f is not integrable over IR, but only over IR+.
Or what is integral_{t=-oo}^{t=0} exp(-t) dt ?
Best wishes
Torsten.

3 件のコメント

himesh
himesh 2015 年 4 月 10 日
Hi, Thanks for the answer.
Can you please explain what IR and IR+ is? Im not sure what you mean.
Thanks again
Torsten
Torsten 2015 年 4 月 10 日
I mean that
integral_{t=-oo}^{t=00} exp(-t) dt
does not exist, but only
integral_{t=0}^{t=oo} exp(-t) dt.
For the Fourier transform to exist, it would be necessary that
integral_{t=-oo}^{t=00} exp(-t) dt < oo
which is not the case.
Best wishes
Torsten.
himesh
himesh 2015 年 4 月 11 日
Thanks. I also have one last question and that is when plotting these, I have to write
ezplot(abs(X))
Why are there errors when I get rid of the abs() in the ezplot statement?
Many thanks

サインインしてコメントする。

sarath sai krishna babu gunupudi
sarath sai krishna babu gunupudi 2019 年 9 月 22 日

0 投票

Display the expression after computing Fourier Transform of u(t).
Save u(t) function in variable x and Fourier transform in variable xf.
hategekimana shadrack
hategekimana shadrack 2021 年 12 月 14 日

0 投票

Use matlab to calculate the Fourier series of the following periodic signals.
a. Draw the Amplitude spectrum of signal.

質問済み:

2015 年 4 月 9 日

回答済み:

2021 年 12 月 14 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by