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 /199/CH6/EX6.15 | |
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 '199/CH6/EX6.15')
-rwxr-xr-x | 199/CH6/EX6.15/Example_6_15.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/199/CH6/EX6.15/Example_6_15.sce b/199/CH6/EX6.15/Example_6_15.sce new file mode 100755 index 000000000..07ccbb059 --- /dev/null +++ b/199/CH6/EX6.15/Example_6_15.sce @@ -0,0 +1,23 @@ +// Chapter6
+// Page.No-230, Figure.No-6.23
+// Example_6_15
+// Output voltage of an integrator
+// Given
+clear;clc;
+Vin=2; // Input voltage in volt
+Vo0=0;
+Vo1=-integrate('2','t',0,1);
+disp(Vo1)
+Vo2=-integrate('2','t',1,2)+Vo1;
+disp(Vo2)
+Vo3=-integrate('2','t',2,3)+Vo2;
+disp(Vo3)
+Vo4=-integrate('2','t',3,4)+Vo3;
+disp(Vo4)
+Vo=[Vo0 Vo1 Vo2 Vo3 Vo4];
+t=[0 1 2 3 4];
+plot(t,Vo);
+title('Output Voltage');
+xlabel('t');
+ylabel('Vo');
+
|