summaryrefslogtreecommitdiff
path: root/40/CH7/EX7.11/Exa_7_11.sce
blob: 6df3d2b96b57ec5857c6d34df86f86ea95bcb8e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Anti Aliasing filter considerations
//minimum stop band attenuation As
B=input('enter no. of bits');//no. of samples
n=input('enter band width in KHZ');
As=20*log10(2^B*sqrt(6))
//nomalised frequency
Vs=(10^(0.1*As)-1)^(1/(2*n))
fp=4;//pass edge frequency
fs=Vs*fp//stop band frquency
S=2*fs//sampling frequency
fa=S-fp//aliaed frequency
Va=fa/fp;
//Attenuation at aliased frequency
Aa=10*log10(1+Va^(2*n))