summaryrefslogtreecommitdiff
path: root/830/CH5/EX5.2.1/Circular_Conv_DFT.sce
diff options
context:
space:
mode:
Diffstat (limited to '830/CH5/EX5.2.1/Circular_Conv_DFT.sce')
-rwxr-xr-x830/CH5/EX5.2.1/Circular_Conv_DFT.sce18
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))