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.9.iii/Example_5_9_iii.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 1592/CH5/EX5.9.iii/Example_5_9_iii.sce (limited to '1592/CH5/EX5.9.iii') diff --git a/1592/CH5/EX5.9.iii/Example_5_9_iii.sce b/1592/CH5/EX5.9.iii/Example_5_9_iii.sce new file mode 100755 index 000000000..0b532366b --- /dev/null +++ b/1592/CH5/EX5.9.iii/Example_5_9_iii.sce @@ -0,0 +1,23 @@ +//Scilab Code for Example 5.9(iii) of Signals and systems by +//P.Ramakrishna Rao +clc; +clear; +q=0; +a1=0.5 +a2=-0.5; +n=1:101; +x1=a1^n; +x2=a2^n; +w=2; +n=0:100; +z=(exp(-%i*w*n)); +for n=0:33; + X(n+1)=z(n+1)*x1(n+1)*cos(0.4*%pi*n); + q=X(n+1)+q; +end +disp(q,'Y3(e^2j) at a=0.5'); +for n=0:33; + X(n+1)=z(n+1)*x2(n+1)*cos(0.4*%pi*n); + q=X(n+1)+q; +end +disp(q,'Y3(e^2j) at a=-0.5'); -- cgit