to find fourier transform of e^-t u(t). How do i remove this error

조회 수: 2 (최근 30일)
Abhinav Raghunandan
Abhinav Raghunandan 2021년 3월 24일
답변: Star Strider 2021년 3월 24일
syms t
>> y=ftransform(exp(-t),-20,20)
Unrecognized function or variable 'ftransform'.
>> y=fft(exp(-t),-20,20)
Error using fft
Invalid data type. First argument must be double, single, int8, uint8, int16, uint16, int32, uint32, or logical.

답변 (1개)

Star Strider
Star Strider 2021년 3월 24일
The fourier function does not allow limits, so that integration would need to be done manually:
syms t omega
y = int(exp(-t).*exp(1j*omega*t), t, -20, 20)
y = simplify(y, 150)
y = rewrite(y, 'sincos')
producing:
y =
(2*sin(20*omega + 20i)*(omega - 1i))/(omega^2 + 1)
In LaTeX:
.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by