summaryrefslogtreecommitdiff
path: root/692/CH10/EX10.7/P10_7.sce
blob: b1ce00a4118ebf85307498a7a725fc357ea50faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//EXAMPLE 10.6
//Order estimation using Dolph-Cebyshev window
clear;
clc;
wp=0.3*%pi;//rad/sec
ws=0.5*%pi;//rad/sec
as=40;//dB

wc=(wp+ws)/2;//cutoff frequency
Bw=ws-wp;
disp(Bw,'Normalized transition bandwidth is = ')

//Order of the filter
N = ((2.056*as) - 16.4)/(2.285*Bw);
disp(ceil(N),'Order of the filter,N =  ')