summaryrefslogtreecommitdiff
path: root/3637/CH4/EX4.22/Ex4_22.sce
blob: 999ed2f7acabf994b4732e14e1d588da02e39d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//problem 22 pagenumber 4.47
//given
n=10;format(6);
vfs=10.24;//volt
distortion=56;//dB
//determine ENOB SNRmax
q=vfs/(2^n*sqrt(12));
snrmax=(6.02*n+1.76);//formula for SNRmax
disp('SNRmax = '+string(snrmax)+' dB');
format(2);
en=(distortion-1.76)/6.02;
disp('ENOB = '+string(en));//no unit