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 /215/CH16/EX16.11 | |
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 '215/CH16/EX16.11')
-rwxr-xr-x | 215/CH16/EX16.11/ex16_11.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/215/CH16/EX16.11/ex16_11.sce b/215/CH16/EX16.11/ex16_11.sce new file mode 100755 index 000000000..e5676bc30 --- /dev/null +++ b/215/CH16/EX16.11/ex16_11.sce @@ -0,0 +1,17 @@ +clc
+//Example 16.11
+disp('Given')
+disp('A high pass filter with cutoff frequency of 3k Hz')
+//Cutoff frequency(wc)=1/(R*C)
+//Let us select some standard value of resistor
+disp('Let R=4.7k ohm')
+fc=3*10^3;R=4.7*10^3;
+wc=2*%pi*fc
+C=1/(R*wc)
+printf("\n C=%3.2f nF ",C*10^9);
+s=poly(0,'s')
+h=syslin('c',(R*C*s)/((1+s*R*C)))
+disp(h)
+HW = frmag(h,512);
+w=0: %pi /511: %pi ;
+plot(w,HW)
|