diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /40/CH8/EX8.16/Exa_8_16.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '40/CH8/EX8.16/Exa_8_16.sce')
-rwxr-xr-x | 40/CH8/EX8.16/Exa_8_16.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/40/CH8/EX8.16/Exa_8_16.sce b/40/CH8/EX8.16/Exa_8_16.sce new file mode 100755 index 000000000..4bd0eb54e --- /dev/null +++ b/40/CH8/EX8.16/Exa_8_16.sce @@ -0,0 +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');
+xtitle('Interpolated Sinusoid:4 samples over one period');
\ No newline at end of file |