diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3812/CH5/EX5.8/5_8.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3812/CH5/EX5.8/5_8.sce')
-rw-r--r-- | 3812/CH5/EX5.8/5_8.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3812/CH5/EX5.8/5_8.sce b/3812/CH5/EX5.8/5_8.sce new file mode 100644 index 000000000..e62bcf5d0 --- /dev/null +++ b/3812/CH5/EX5.8/5_8.sce @@ -0,0 +1,26 @@ +//Example 5_8
+//find the fourier transform x(t)=exp(-%pi*(t^2))
+clear;
+clc;
+B=%pi;
+Dt=0.005;
+t=-4.5:Dt:4.5;
+xt=exp(-%pi*(t^2));
+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(2,1,1);
+plot(t,xt);
+xlabel('t i n s e c');
+ylabel('x(t)')
+title('Continuous Time Signal')
+subplot(2,1,2);
+plot(W,XW);
+xlabel('Fr equency in Radians/Seconds W');
+ylabel('X(jW)')
+title('Continuous-time Fourier Transform')
|