From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 52/CH3/EX3.25/Example3_25.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 52/CH3/EX3.25/Example3_25.sce (limited to '52/CH3/EX3.25/Example3_25.sce') 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 -- cgit