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 /929/CH3/EX3.18 | |
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 '929/CH3/EX3.18')
-rwxr-xr-x | 929/CH3/EX3.18/Example3_18.sce | 43 |
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 |