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 /40/CH9/EX9.8b | |
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 '40/CH9/EX9.8b')
-rwxr-xr-x | 40/CH9/EX9.8b/Exa_9_8b.jpg | bin | 0 -> 14818 bytes | |||
-rwxr-xr-x | 40/CH9/EX9.8b/Exa_9_8b.sce | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/40/CH9/EX9.8b/Exa_9_8b.jpg b/40/CH9/EX9.8b/Exa_9_8b.jpg Binary files differnew file mode 100755 index 000000000..e99357100 --- /dev/null +++ b/40/CH9/EX9.8b/Exa_9_8b.jpg diff --git a/40/CH9/EX9.8b/Exa_9_8b.sce b/40/CH9/EX9.8b/Exa_9_8b.sce new file mode 100755 index 000000000..fc27bc3d6 --- /dev/null +++ b/40/CH9/EX9.8b/Exa_9_8b.sce @@ -0,0 +1,20 @@ +//Bilinear transformation
+//To convert twin-T notch analog filter to digital filter
+s=%s;
+z=%z;
+HS=(s^2+1)/(s^2+4*s+1);
+Wo=1;
+S=240;f=60;//sampling and analog frequencies
+W=0.5*%pi;//digital frequency
+C=Wo/tan(0.5*W)
+HZ=horner(HS,C*(z-1)/(z+1))
+f=0:120;
+HZ1=abs(horner(HZ,exp(-%i*%pi*f'/120)));
+HS1=abs(horner(HS,(%i*f'/60)));
+a=gca();
+a.x_location="origin";
+plot2d(f,HZ1);
+plot2d(f,HS1);
+xlabel('Analog Frequency f[kHZ]');
+ylabel('Magnitude');
+xtitle('Notch filter H(S) and digital filter H(z)');
|