diff options
Diffstat (limited to '52/CH3/EX3.25/Example3_25.sce')
-rwxr-xr-x | 52/CH3/EX3.25/Example3_25.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/52/CH3/EX3.25/Example3_25.sce b/52/CH3/EX3.25/Example3_25.sce new file mode 100755 index 000000000..ca3cdfda4 --- /dev/null +++ b/52/CH3/EX3.25/Example3_25.sce @@ -0,0 +1,20 @@ +//Example 3.25
+//Program to Compute the 8-point Circular Convolution of the Sequences
+//x1[n]=[1,1,1,1,0,0,0,0]
+//x2[n]=sin(3*pi*n/8)
+clear;
+clc ;
+close ;
+x1=[1,1,1,1,0,0,0,0];
+n=0:1:7;
+pi=22/7;
+x2=sin(3*pi*n/8);
+//DFT Computation
+X1=fft (x1,-1);
+X2=fft (x2,-1);
+//Circular Convolution using DFT
+Y=X1.*X2;
+//IDFT Computation
+y= fft (Y,1);
+//Display sequence y[n] in command window
+disp(y,"y[n]=");
\ No newline at end of file |