diff options
Diffstat (limited to '2279/CH5/EX5.16/Ex5_16.sce')
-rw-r--r-- | 2279/CH5/EX5.16/Ex5_16.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/2279/CH5/EX5.16/Ex5_16.sce b/2279/CH5/EX5.16/Ex5_16.sce new file mode 100644 index 000000000..39c8f4688 --- /dev/null +++ b/2279/CH5/EX5.16/Ex5_16.sce @@ -0,0 +1,27 @@ +//Continuous Time Signal x(t)= exp(-B*abs(t))
+clear;
+clc;
+close;
+B =1;
+Dt = 0.005;
+t = -4.5:Dt:4.5;
+xt = exp(-B*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)];
+disp("The given signal is even and it has no phase spectrum")
+subplot(2,1,1);
+plot(t,xt);
+xlabel('t in sec.');
+ylabel('x(t)')
+title('Continuous Time Signal')
+subplot(2,1,2);
+plot(W,XW);
+xlabel('Frequency in Radians/Seconds W');
+ylabel('X(jW)')
+title('Continuous-time Fourier Transform')
|