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 --- 199/CH6/EX6.15/Example_6_15.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 199/CH6/EX6.15/Example_6_15.sce (limited to '199/CH6/EX6.15/Example_6_15.sce') 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'); + -- cgit