summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.16/Exa_8_16.sce
diff options
context:
space:
mode:
Diffstat (limited to '40/CH8/EX8.16/Exa_8_16.sce')
-rwxr-xr-x40/CH8/EX8.16/Exa_8_16.sce22
1 files changed, 11 insertions, 11 deletions
diff --git a/40/CH8/EX8.16/Exa_8_16.sce b/40/CH8/EX8.16/Exa_8_16.sce
index 4bd0eb54e..e26b99b6f 100755
--- a/40/CH8/EX8.16/Exa_8_16.sce
+++ b/40/CH8/EX8.16/Exa_8_16.sce
@@ -1,12 +1,12 @@
-//signal interpolation using FFT
-xn=[0 1 0 -1];
-XDFT=dft(xn,-1)
-ZT=[0 -2*%i 0 zeros(1:27) 0 2*%i];
-xn1=dft(ZT,1);
-t=0:1/length(xn1):1-(1/length(xn1));
-a=gca();
-a.x_location="origin";
-plot2d(t,xn1);
-xlabel('time t');
-ylabel('Amplitude');
+//signal interpolation using FFT
+xn=[0 1 0 -1];
+XDFT=fft(xn,-1)
+ZT=[0 -2*%i 0 zeros(1:27) 0 2*%i];
+xn1=fft(ZT,1);
+t=0:1/length(xn1):1-(1/length(xn1));
+a=gca();
+a.x_location="origin";
+plot2d(t,xn1);
+xlabel('time t');
+ylabel('Amplitude');
xtitle('Interpolated Sinusoid:4 samples over one period'); \ No newline at end of file