summaryrefslogtreecommitdiff
path: root/52/CH5/EX5.1/Example5_1.sce
blob: c62f2ba470f4734a6779f69e3e22d5531ed47d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 5.1
//To Find out the order of the filter
clear;
clc ;
close ;
ap=1;//db
as=30;//db
op=200;//rad/sec
os=600;//rad/sec
N=log(sqrt((10^(0.1*as)-1)/(10^(0.1*ap)-1)))/log(os/op);
disp(ceil(N),'Order of the filter, N =');