summaryrefslogtreecommitdiff
path: root/67/CH8/EX8.15/example815.sce
diff options
context:
space:
mode:
Diffstat (limited to '67/CH8/EX8.15/example815.sce')
-rwxr-xr-x67/CH8/EX8.15/example815.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/67/CH8/EX8.15/example815.sce b/67/CH8/EX8.15/example815.sce
new file mode 100755
index 000000000..647a3af32
--- /dev/null
+++ b/67/CH8/EX8.15/example815.sce
@@ -0,0 +1,9 @@
+//Example 8.15
+//Obtain the DFT of x[n]=(a^n).u[n]
+clc;
+a=0.5;
+for i=0:1:7
+ x(i+1)=a.^i;
+end
+X=fft(x,-1);
+disp(X,'X[k]='); \ No newline at end of file