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 /1592/CH5/EX5.9.i/Example5_9_i.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 '1592/CH5/EX5.9.i/Example5_9_i.sce')
-rwxr-xr-x | 1592/CH5/EX5.9.i/Example5_9_i.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1592/CH5/EX5.9.i/Example5_9_i.sce b/1592/CH5/EX5.9.i/Example5_9_i.sce new file mode 100755 index 000000000..27f2ce0b9 --- /dev/null +++ b/1592/CH5/EX5.9.i/Example5_9_i.sce @@ -0,0 +1,23 @@ +//Scilab Code for Example 5.9(i) 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(3*n+1);
+ q=X(n+1)+q;
+end
+disp(q,'Y1(e^2j) at a=0.5');
+for n=0:33;
+ X(n+1)=z(n+1)*x2(3*n+1);
+ q=X(n+1)+q;
+end
+disp(q,'Y1(e^2j) at a=-0.5');
|