summaryrefslogtreecommitdiff
path: root/40/CH5/EX5.5/Exa_5_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '40/CH5/EX5.5/Exa_5_5.sce')
-rwxr-xr-x40/CH5/EX5.5/Exa_5_5.sce12
1 files changed, 6 insertions, 6 deletions
diff --git a/40/CH5/EX5.5/Exa_5_5.sce b/40/CH5/EX5.5/Exa_5_5.sce
index 0ad017d37..0b1ba221e 100755
--- a/40/CH5/EX5.5/Exa_5_5.sce
+++ b/40/CH5/EX5.5/Exa_5_5.sce
@@ -1,7 +1,7 @@
-x=[1 0 2 0 3];//one period of signal
-n=0:4;
-k=0:4;
-x1=x*exp(%i*n'*2*k*%pi/4)
-DTFTx=abs(x1)
-DFT=dft(x,-1)
+x=[1 0 2 0 3];//one period of signal
+n=0:4;
+k=0:4;
+x1=x*exp(%i*n'*2*k*%pi/4)
+DTFTx=abs(x1)
+DFT=fft(x,-1)
DFS=DFT/5 \ No newline at end of file