A*(pi*dirac(w) - i/w) the fourier transform of A*exp(-a*t)*u(t)= A*transform::fourier(heaviside(t)/exp(a*t), t, -w) Phase and magnitude Program: clc; clear all; close all; syms t; x=3*exp(-t)*heaviside(t); X=fourier(x); disp('the F.T of 3*exp(-t)*u(t)='); disp(X); w=-2*pi:pi/50:2*pi; X1=subs(X,w); Xmag=abs(X1); figure; subplot(2,1,1); plot(w,Xmag); xlabel('w'); ylabel('Xmag'); title('magnitude spectrum');grid; subplot(2,1,2); plot(w,Xphas); xlabel('w'); ylabel('phase in radians');
A*(pi*dirac(w) - i/w) the fourier transform of A*exp(-a*t)*u(t)= A*transform::fourier(heaviside(t)/exp(a*t), t, -w) Phase and magnitude Program: clc; clear all; close all; syms t; x=3*exp(-t)*heaviside(t); X=fourier(x); disp('the F.T of 3*exp(-t)*u(t)='); disp(X); w=-2*pi:pi/50:2*pi; X1=subs(X,w); Xmag=abs(X1); figure; subplot(2,1,1); plot(w,Xmag); xlabel('w'); ylabel('Xmag'); title('magnitude spectrum');grid; subplot(2,1,2); plot(w,Xphas); xlabel('w'); ylabel('phase in radians');
10936_27102017BS_lab_manual.docx