diff options
Diffstat (limited to '3812/CH5/EX5.2/5_2.sce')
-rw-r--r-- | 3812/CH5/EX5.2/5_2.sce | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/3812/CH5/EX5.2/5_2.sce b/3812/CH5/EX5.2/5_2.sce new file mode 100644 index 000000000..61d60835d --- /dev/null +++ b/3812/CH5/EX5.2/5_2.sce @@ -0,0 +1,31 @@ +//Example 5.2:
+//Continuous Time Fourier Transform of x(t)=e-a|t|
+clc;
+close;
+a=1;
+Dt=0.005;
+t=-4.5:Dt:4.5;
+xt=exp(-a*abs(t));
+Wmax=2*%pi*1;
+K=4;
+k=0:(K/1000):K;
+W=k*Wmax/K;
+XW=xt*exp(-sqrt(-1)*t'*W)*Dt;
+XW=real(XW);
+W=[-mtlb_fliplr(W), W(2:1001)];
+XW=[mtlb_fliplr(XW),XW(2:1001)];
+subplot(1,1,1)
+subplot(2,1,1);
+a=gca();
+a.y_location="origin";
+plot(t,xt);
+xlabel('t in sec.');
+ylabel('x(t)')
+title('Continuous Time Signal')
+subplot(2,1,2);
+a=gca();
+a.y_location = "origin";
+plot(W,XW);
+xlabel('Frequency in Radians/Seconds W');
+ylabel('X(jW)')
+title('Continuous-time Fourier Transform')
|