summaryrefslogtreecommitdiff
path: root/758/CH6/EX6.12/Ex_6_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '758/CH6/EX6.12/Ex_6_12.sce')
-rwxr-xr-x758/CH6/EX6.12/Ex_6_12.sce20
1 files changed, 10 insertions, 10 deletions
diff --git a/758/CH6/EX6.12/Ex_6_12.sce b/758/CH6/EX6.12/Ex_6_12.sce
index 0f088a5ed..a08eeae84 100755
--- a/758/CH6/EX6.12/Ex_6_12.sce
+++ b/758/CH6/EX6.12/Ex_6_12.sce
@@ -1,11 +1,11 @@
-//Example 6.12
-
-clc;clear;close;
-N=4;
-n=0:N-1;
-x=cos(%pi/4*n);
-//Calculation of DFT
-X=dft(x,-1);
-X=clean(X);
-disp(x,'Given Sequence is x(n): ');
+//Example 6.12
+
+clc;clear;close;
+N=4;
+n=0:N-1;
+x=cos(%pi/4*n);
+//Calculation of DFT
+X=fft(x,-1);
+X=clean(X);
+disp(x,'Given Sequence is x(n): ');
disp(X,'DFT of the Sequence is X(k): '); \ No newline at end of file