summaryrefslogtreecommitdiff
path: root/1592/CH7/EX7.25
diff options
context:
space:
mode:
Diffstat (limited to '1592/CH7/EX7.25')
-rwxr-xr-x1592/CH7/EX7.25/Example_7_25.sce21
-rwxr-xr-x1592/CH7/EX7.25/Fig7_25.jpgbin0 -> 5392 bytes
2 files changed, 21 insertions, 0 deletions
diff --git a/1592/CH7/EX7.25/Example_7_25.sce b/1592/CH7/EX7.25/Example_7_25.sce
new file mode 100755
index 000000000..aacc9cb9c
--- /dev/null
+++ b/1592/CH7/EX7.25/Example_7_25.sce
@@ -0,0 +1,21 @@
+//Scilab Code for Example 7.25 of Signals and systems by
+//P.Ramakrishna Rao
+//Plotting the impulse and step responses
+clc;
+clear;
+syms z a n;
+Y1=(2*z/(z-a));
+disp(Y1,'Z Transform Of differential Equation is:')
+y12=2*a^n;
+disp(y12,'The Unit Sample Response of the System is:');
+y2=2*(a^n-1)/(a-1);
+disp(y2,'The Step Response of the System is:');
+q=1;
+a=0.5;
+for k=0:0.1:5;
+y2(q)=2*((a^k-1)/(a-1));
+q=q+1;
+end
+k=0:0.1:5;
+plot(k,y2);
+
diff --git a/1592/CH7/EX7.25/Fig7_25.jpg b/1592/CH7/EX7.25/Fig7_25.jpg
new file mode 100755
index 000000000..4b4bac75c
--- /dev/null
+++ b/1592/CH7/EX7.25/Fig7_25.jpg
Binary files differ