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 /2279/CH6/EX6.4 | |
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 '2279/CH6/EX6.4')
-rw-r--r-- | 2279/CH6/EX6.4/Ex6_4.sce | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/2279/CH6/EX6.4/Ex6_4.sce b/2279/CH6/EX6.4/Ex6_4.sce new file mode 100644 index 000000000..b049ab9ef --- /dev/null +++ b/2279/CH6/EX6.4/Ex6_4.sce @@ -0,0 +1,41 @@ +// Continuous Time Fourier Transforms of
+// Sinusoidal waveforms 3cos(2*pi*t)
+clear;
+clc;
+close;
+// CTFT
+t=-10:0.01:10;
+x=3*cos(2*%pi*t);
+subplot(2,1,1)
+plot(t,x);
+xtitle("CT signal x(t)","t","x(t)");
+T1 = 2;
+T = 4*T1;
+Wo = 6*%pi/T;
+W = [-Wo,0,Wo];
+ak = (2*%pi*Wo*T1/%pi);
+XW =[ak,0,ak];
+subplot(2,1,2)
+plot2d3('gnn',W,real(XW));
+xlabel(' W');
+xtitle('CTFT of cos(Wot)','W','X(jW)')
+n=-10:10;
+W1=4*%pi;
+W2=8*%pi;
+W3=3*%pi;
+T1=(2*%pi)/W1;
+T2=(2*%pi)/W2;
+T3=(2*%pi)/W3;
+x1=3*cos(2*%pi*n*T1);
+x2=3*cos(2*%pi*n*T2);
+x3=3*cos(2*%pi*n*T3);
+figure(1)
+subplot(3,1,1)
+plot2d3('gnn',n,x1);
+xtitle("X(t) sampled at Ws=4*pi","n","x1[n]");
+subplot(3,1,2)
+plot2d3('gnn',n,x2);
+xtitle("X(t) sampled at Ws=8*pi","n","x2[n]");
+subplot(3,1,3)
+plot2d3('gnn',n,x3);
+xtitle("X(t) sampled at Ws=3*pi","n","x3[n]");
|