summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.9c/Exa_8_9c.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /40/CH8/EX8.9c/Exa_8_9c.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '40/CH8/EX8.9c/Exa_8_9c.sce')
-rwxr-xr-x40/CH8/EX8.9c/Exa_8_9c.sce30
1 files changed, 15 insertions, 15 deletions
diff --git a/40/CH8/EX8.9c/Exa_8_9c.sce b/40/CH8/EX8.9c/Exa_8_9c.sce
index 67632bb96..d504a0c70 100755
--- a/40/CH8/EX8.9c/Exa_8_9c.sce
+++ b/40/CH8/EX8.9c/Exa_8_9c.sce
@@ -1,15 +1,15 @@
-//DFT and DFS of sinusoids
-n2=0:1/840:6/21;
-xt=4*sin(72*%pi*n2')-6*cos(12*%pi*n2');
-n=0:1/21:6/21;//F=3/12 hence N=12
-xn=4*sin(72*%pi*n')-6*cos(12*%pi*n');
-XDFT=abs(dft(xn,-1));
-n1=0:6;
-a=gca();
-a.x_location="origin";
-plot2d(n2,xt);
-plot2d3('gnn',n,xn);
-xset('window',1);
-b=gca();
-b.x_location="origin";
-plot2d3('gnn',n1,XDFT);
+//DFT and DFS of sinusoids
+n2=0:1/840:6/21;
+xt=4*sin(72*%pi*n2')-6*cos(12*%pi*n2');
+n=0:1/21:6/21;//F=3/12 hence N=12
+xn=4*sin(72*%pi*n')-6*cos(12*%pi*n');
+XDFT=abs(fft(xn,-1));
+n1=0:6;
+a=gca();
+a.x_location="origin";
+plot2d(n2,xt);
+plot2d3('gnn',n,xn);
+xset('window',1);
+b=gca();
+b.x_location="origin";
+plot2d3('gnn',n1,XDFT); \ No newline at end of file