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 --- 1592/CH5/EX5.14/Example5_14.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 1592/CH5/EX5.14/Example5_14.sce (limited to '1592/CH5/EX5.14/Example5_14.sce') diff --git a/1592/CH5/EX5.14/Example5_14.sce b/1592/CH5/EX5.14/Example5_14.sce new file mode 100755 index 000000000..27cc4aed2 --- /dev/null +++ b/1592/CH5/EX5.14/Example5_14.sce @@ -0,0 +1,21 @@ +//Scilab Code for Example 5.14 of Signals and systems by +//P.Ramakrishna Rao +//Circular Convolution +clear; +clc; +close; +//First Causal sequence +x=[1,1,1,1;1,-%i,-1,%i;1,-1,1,-1;1,%i,-1,-%i] +y1=[1;2;3;4]; +y2=[4;3;2;1]; +X=x*y1; +disp(X,'Vector X(0)-->X(3)') +Y=x*y2; +disp(Y,'Vector Y(0)-->Y(3)') +for n=1:4; + Z(n,1)=X(n,1)*Y(n,1); +end +q=4*x^-1; +disp(q,'IDFT matrix '); +z=0.25*q*Z; +disp(z,'IDFT of Vector Z(0)-->Z(3)') -- cgit