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/CH7/EX7.15/Example_7_15.sce | 28 ++++++++++++++++++++++++++++ 1592/CH7/EX7.15/Fig7_15_1.jpg | Bin 0 -> 6301 bytes 1592/CH7/EX7.15/Fig7_15_2.jpg | Bin 0 -> 6327 bytes 3 files changed, 28 insertions(+) create mode 100755 1592/CH7/EX7.15/Example_7_15.sce create mode 100755 1592/CH7/EX7.15/Fig7_15_1.jpg create mode 100755 1592/CH7/EX7.15/Fig7_15_2.jpg (limited to '1592/CH7/EX7.15') diff --git a/1592/CH7/EX7.15/Example_7_15.sce b/1592/CH7/EX7.15/Example_7_15.sce new file mode 100755 index 000000000..67abee2df --- /dev/null +++ b/1592/CH7/EX7.15/Example_7_15.sce @@ -0,0 +1,28 @@ +//Scilab Code for Example 7.15 of Signals and systems by +//P.Ramakrishna Rao +//Plotting the impulse and step responses +clc; +clear; +syms s t R L; +Y1=(1/s)-(1/(s+(R/L))); +disp(Y1,'Laplace Transform Of differential Equation is:') +y1=ilaplace(Y1,s,t); +disp(y1,'The Step Response of the System is:'); +//Taking R/L=1; +for k=0:10; + y1(k+1)=1-exp(-k); +end +k=0:10; +plot(k,y1); +title('System Response to Step input'); +Y2=(1/(s+(R/L))); +disp(Y2,'Laplace Transform Of differential Equation is:') +y2=ilaplace(Y2,s,t); +disp(y2,'The Impulse Response of the System is:'); +for k=0:10; + y2(k+1)=exp(-k); +end +figure(1); +k=0:10; +plot(k,y2); +title('System Response to impulse input'); diff --git a/1592/CH7/EX7.15/Fig7_15_1.jpg b/1592/CH7/EX7.15/Fig7_15_1.jpg new file mode 100755 index 000000000..f129de8fc Binary files /dev/null and b/1592/CH7/EX7.15/Fig7_15_1.jpg differ diff --git a/1592/CH7/EX7.15/Fig7_15_2.jpg b/1592/CH7/EX7.15/Fig7_15_2.jpg new file mode 100755 index 000000000..14281b17c Binary files /dev/null and b/1592/CH7/EX7.15/Fig7_15_2.jpg differ -- cgit