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 /830/CH5/EX5.2.1 | |
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 '830/CH5/EX5.2.1')
-rwxr-xr-x | 830/CH5/EX5.2.1/Circular_Conv_DFT.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/830/CH5/EX5.2.1/Circular_Conv_DFT.sce b/830/CH5/EX5.2.1/Circular_Conv_DFT.sce new file mode 100755 index 000000000..3ed0894be --- /dev/null +++ b/830/CH5/EX5.2.1/Circular_Conv_DFT.sce @@ -0,0 +1,18 @@ +//Graphical//
+//Example 5.2.1 and Example 5.2.2
+//Performing Circular COnvolution
+//Using DFT
+clear;
+clc;
+close;
+L = 4; //Length of the Sequence
+N = 4; // N -point DFT
+x1 = [2,1,2,1];
+x2 = [1,2,3,4];
+//Computing DFT
+X1 = dft(x1,-1)
+X2 = dft(x2,-1)
+//Multiplication of 2 DFTs
+X3 = X1.*X2
+//Circular Convolution Result
+x3 =abs(dft(X3,1))
|