summaryrefslogtreecommitdiff
path: root/40/CH8/EX8.16
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /40/CH8/EX8.16
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '40/CH8/EX8.16')
-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