summaryrefslogtreecommitdiff
path: root/2528/CH10/EX10.4
diff options
context:
space:
mode:
Diffstat (limited to '2528/CH10/EX10.4')
-rwxr-xr-x2528/CH10/EX10.4/Ex10_4.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/2528/CH10/EX10.4/Ex10_4.sce b/2528/CH10/EX10.4/Ex10_4.sce
new file mode 100755
index 000000000..5dfeace3c
--- /dev/null
+++ b/2528/CH10/EX10.4/Ex10_4.sce
@@ -0,0 +1,34 @@
+//chapter 10
+//Vout
+//page no. 359
+//Figure 10.11a
+//Given
+clc;
+clear;
+Rf=400000; //in Ohm
+C=20*10^-9; //in farad
+flow=1/(2*%pi*Rf*C);
+printf("\n Flow = %.1f Hz",flow);
+Ri=15000; //in Ohm
+//integration
+function Vin=f(t),Vin=.6,endfunction
+exact=-2.5432596188;
+I=intg(0,10^-3,f)
+
+Vout=-1*I/Ri/C;
+printf("\n Vout(t) = %.1f V",Vout);//Result
+
+//Graph
+t=(0:0.001:6);
+V=Vout*ones(1:0.001:4);
+
+for i=0.001:0.001:1-.001
+ V=[Vout*(1-i) V Vout*(1-i)]
+end
+
+V=[V zeros(5.001:0.001:6)]
+V=[2 V 0]
+clf;
+plot(t,V)
+xgrid;
+xtitle('Integrator output','$t$',"$Voltage$")