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/CH7/EX7.14 | |
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/CH7/EX7.14')
-rwxr-xr-x | 1592/CH7/EX7.14/Example_7_14.sce | 27 | ||||
-rwxr-xr-x | 1592/CH7/EX7.14/Fig7_14_1.jpg | bin | 0 -> 6327 bytes | |||
-rwxr-xr-x | 1592/CH7/EX7.14/Fig7_14_2.jpg | bin | 0 -> 6301 bytes |
3 files changed, 27 insertions, 0 deletions
diff --git a/1592/CH7/EX7.14/Example_7_14.sce b/1592/CH7/EX7.14/Example_7_14.sce new file mode 100755 index 000000000..62b0f61be --- /dev/null +++ b/1592/CH7/EX7.14/Example_7_14.sce @@ -0,0 +1,27 @@ +//Scilab Code for Example 7.14 of Signals and systems by
+//P.Ramakrishna Rao
+//Plotting the impulse and step responses
+clc;
+clear;
+syms s t R C;
+Y1=(1/(R*C))/(s+1/(R*C));
+disp(Y1,'Laplace Transform Of differential Equation is:')
+y11=ilaplace(Y1,s,t);
+disp(y11,'The Impulse Response of the System is:');
+for k=0:10;
+ y1(k+1)=exp(-k);
+end
+k=0:10;
+plot(k,y1);
+title('System Response to impulse input');
+Y2=(1/(R*C))/(s^2+s/(R*C));
+disp(Y2,'Laplace Transform Of differential Equation is:')
+y22=ilaplace(Y2,s,t);
+disp(y22,'The Step Response of the System is:');
+for k=0:10;
+ y2(k+1)=1-exp(-k);
+end
+figure(1);
+k=0:10;
+plot(k,y2);
+title('System Response to Step input');
diff --git a/1592/CH7/EX7.14/Fig7_14_1.jpg b/1592/CH7/EX7.14/Fig7_14_1.jpg Binary files differnew file mode 100755 index 000000000..14281b17c --- /dev/null +++ b/1592/CH7/EX7.14/Fig7_14_1.jpg diff --git a/1592/CH7/EX7.14/Fig7_14_2.jpg b/1592/CH7/EX7.14/Fig7_14_2.jpg Binary files differnew file mode 100755 index 000000000..f129de8fc --- /dev/null +++ b/1592/CH7/EX7.14/Fig7_14_2.jpg |