summaryrefslogtreecommitdiff
path: root/992/CH9/EX9.8/Ex9_8.sce
blob: 17a670eb6e91805ab2addeace8f65cdd49ab6409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

//Exa:9.8
clc;
clear;
close;
//Given:
SQNR=20;
Nq=3*10^-4;//in Watts
S=sqrt(12*3*10^-4);
M=(3.8+3.8)/S;//-3.8V to 3.8V signal variation
n=log2(M);
printf("Number of bits per sample %f",n);