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 /52/CH3/EX3.25/Example3_25.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 '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 |