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.17 | |
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.17')
-rwxr-xr-x | 40/CH8/EX8.17/Exa_8_17.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/40/CH8/EX8.17/Exa_8_17.sce b/40/CH8/EX8.17/Exa_8_17.sce new file mode 100755 index 000000000..10f457b52 --- /dev/null +++ b/40/CH8/EX8.17/Exa_8_17.sce @@ -0,0 +1,8 @@ +//concept of periodogram
+xn=[0 1 0 -1];
+N=4;
+XDFT=dft(xn,-1);
+for i=1:length(XDFT)
+ p(i)=(1/N)*abs(XDFT(i)^2);
+end
+p//periodogram
\ No newline at end of file |