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 /716/CH9/EX9.3/Solved_Ex9_3.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 '716/CH9/EX9.3/Solved_Ex9_3.sce')
-rwxr-xr-x | 716/CH9/EX9.3/Solved_Ex9_3.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/716/CH9/EX9.3/Solved_Ex9_3.sce b/716/CH9/EX9.3/Solved_Ex9_3.sce new file mode 100755 index 000000000..9a9e9de57 --- /dev/null +++ b/716/CH9/EX9.3/Solved_Ex9_3.sce @@ -0,0 +1,21 @@ +//compute circular convolution of x1(n)={2 1 2 1} & x2(n)={1 2 3 4}
+clc;
+clear;
+n=0:1:3;//for four point DFT
+x1=[1 2 3 4];
+disp(x1,'Given signal=> x1(n)=');
+X1=dft(x1,-1);
+disp(X1,'four point DFT of x(n)=>');
+disp(abs(X1),'magnitude of four point DFT x(n)=>');
+disp(atan(imag(X1),real(X1)),'phase of four point DFT x(n)=>');
+
+x2=[2 1 2 1];
+disp(x2,'Given signal=> x1(n)=');
+X2=dft(x2,-1);
+disp(X2,'four point DFT of x(n)=>');
+disp(abs(X2),'magnitude of four point DFT x(n)=>');
+disp(atan(imag(X2),real(X2)),'phase of four point DFT x(n)=>');
+
+X3=X1.*X2;
+x3=dft(X3,1);
+disp(x3,'by circular convolution x3(n)=>');
\ No newline at end of file |