Evaluating Fourier Transforms with MATLAB | x(t)=e^(-t) |

Compute the Fourier transform of the function x(t)=e^(-t).Write the code and plot its graph.

source code:

 

syms t w X w0 t0

f = exp(-t)*heaviside(t)

X=fourier(f, t, w)

ezplot(abs(X))

legend('X(t)=e^-t')

title('Lab 9 task 1 ')

xlabel('Time')

ylabel('Amplitude')

Result:


Graph:




   Compute the inverse Fourier transform of the function.


Source code:

syms  t w X w0 t0

 X=1/1+(j*w);

 ifourier(X);

 simplify(ans) ;

 pretty(ans) ;








Post a Comment

0 Comments