summaryrefslogtreecommitdiff
path: root/929/CH3/EX3.18/Example3_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '929/CH3/EX3.18/Example3_18.sce')
-rwxr-xr-x929/CH3/EX3.18/Example3_18.sce43
1 files changed, 43 insertions, 0 deletions
diff --git a/929/CH3/EX3.18/Example3_18.sce b/929/CH3/EX3.18/Example3_18.sce
new file mode 100755
index 000000000..d227c4ef1
--- /dev/null
+++ b/929/CH3/EX3.18/Example3_18.sce
@@ -0,0 +1,43 @@
+//Example 3.18
+
+clear;
+
+clc;
+
+C=10*10^(-9);//Assuming C=10 nF
+
+C1=C;
+
+C2=C;
+
+f0=1*10^3;
+
+BW=10;
+
+R=(1/(2*%pi*f0*C))-(0.12*10^3);
+
+Q=f0/BW;
+
+R1=1*10^3;//Assuming R1=1 kohms
+
+R2=((3*Q)-1)*R1;
+
+R3=R;
+
+R4=R;
+
+R5=R;
+
+Hobp=Q;
+
+printf("Designed State-Variable Filter for Bandpass Response :");
+
+printf("\nR1=%.2f kohms",R1*10^(-3));
+
+printf("\nR2=%.2f kohms",R2*10^(-3));//Answer in textbook is wrong
+
+printf("\nR3=R4=R5=%.2f kohms",R*10^(-3));
+
+printf("\nC1=C2=%.2f nF",C*10^9);
+
+printf("\n\nResonance Gain=%.2f V/V",Hobp); \ No newline at end of file