summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.9c
diff options
context:
space:
mode:
Diffstat (limited to '40/CH8/EX8.9c')
-rwxr-xr-x40/CH8/EX8.9c/Exa_8_9c.sce15
-rwxr-xr-x40/CH8/EX8.9c/Exa_8_9c_0.jpgbin0 -> 16233 bytes
-rwxr-xr-x40/CH8/EX8.9c/Exa_8_9c_1.jpgbin0 -> 10728 bytes
3 files changed, 15 insertions, 0 deletions
diff --git a/40/CH8/EX8.9c/Exa_8_9c.sce b/40/CH8/EX8.9c/Exa_8_9c.sce
new file mode 100755
index 000000000..67632bb96
--- /dev/null
+++ b/40/CH8/EX8.9c/Exa_8_9c.sce
@@ -0,0 +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);
diff --git a/40/CH8/EX8.9c/Exa_8_9c_0.jpg b/40/CH8/EX8.9c/Exa_8_9c_0.jpg
new file mode 100755
index 000000000..924bb1475
--- /dev/null
+++ b/40/CH8/EX8.9c/Exa_8_9c_0.jpg
Binary files differ
diff --git a/40/CH8/EX8.9c/Exa_8_9c_1.jpg b/40/CH8/EX8.9c/Exa_8_9c_1.jpg
new file mode 100755
index 000000000..55efa132d
--- /dev/null
+++ b/40/CH8/EX8.9c/Exa_8_9c_1.jpg
Binary files differ