summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.9a
diff options
context:
space:
mode:
Diffstat (limited to '40/CH8/EX8.9a')
-rwxr-xr-x40/CH8/EX8.9a/Exa_8_9a.sce30
1 files changed, 15 insertions, 15 deletions
diff --git a/40/CH8/EX8.9a/Exa_8_9a.sce b/40/CH8/EX8.9a/Exa_8_9a.sce
index b61b2c4d9..176cd645c 100755
--- a/40/CH8/EX8.9a/Exa_8_9a.sce
+++ b/40/CH8/EX8.9a/Exa_8_9a.sce
@@ -1,15 +1,15 @@
-//DFT and DFS of sinusoids
-n2=0:0.5/1000:5.5/100;
-xt=4*cos(100*%pi*n2');
-n=0:(0.5)/100:(5.5)/100;//F=3/12 hence N=12
-xn=4*cos(100*%pi*n');
-XDFT=dft(xn,-1);
-n1=0:11;
-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:0.5/1000:5.5/100;
+xt=4*cos(100*%pi*n2');
+n=0:(0.5)/100:(5.5)/100;//F=3/12 hence N=12
+xn=4*cos(100*%pi*n');
+XDFT=fft(xn,-1);
+n1=0:11;
+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