summaryrefslogtreecommitdiff
path: root/3637/CH4/EX4.12/Ex4_12.sce
blob: 90a29d851b7ecb17b7715de4eb918d8433087942 (plain)
1
2
3
4
5
6
7
8
9
10
11
//problem 12 pagenumber  4.43
//given
n=10;
vref1=-10;//volt
vref2=10;//volt
r=(vref2-vref1)/(2^n-1);format(6);
disp('Resolution = '+string(r*1e3)+' milivolt');
r=100/(2^n-1);
disp('Resolution in percent = '+string(r)+'%');