to find fourier transform of e^-t u(t). How do i remove this error
8 views (last 30 days)
Show older comments
Abhinav Raghunandan on 24 Mar 2021
Answered: Star Strider on 24 Mar 2021
Unrecognized function or variable 'ftransform'.
Error using fft
Invalid data type. First argument must be double, single, int8, uint8, int16, uint16, int32, uint32, or logical.
Star Strider on 24 Mar 2021
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')
(2*sin(20*omega + 20i)*(omega - 1i))/(omega^2 + 1)
Find more on Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!