summaryrefslogtreecommitdiff
path: root/52/CH5/EX5.2/Example5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '52/CH5/EX5.2/Example5_2.sce')
-rwxr-xr-x52/CH5/EX5.2/Example5_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/52/CH5/EX5.2/Example5_2.sce b/52/CH5/EX5.2/Example5_2.sce
new file mode 100755
index 000000000..a6c9a5daf
--- /dev/null
+++ b/52/CH5/EX5.2/Example5_2.sce
@@ -0,0 +1,13 @@
+//Example 5.2
+//To Find out the order of a Low Pass Butterworth Filter
+clear;
+clc ;
+close ;
+ap=3;//db
+as=40;//db
+fp=500;//Hz
+fs=1000;//Hz
+op=2*%pi*fp;
+os=2*%pi*fs;
+N=log(sqrt((10^(0.1*as)-1)/(10^(0.1*ap)-1)))/log(os/op);
+disp(ceil(N),'Order of the filter, N ='); \ No newline at end of file