summaryrefslogtreecommitdiff
path: root/569/CH6/EX6.28/6_28.sci
blob: 25bc2b9a48f7ab2a0086a7bcb25afef09a0911af (plain)
1
2
3
4
5
6
7
8
// Calculating the weight of MSB and LSB
clc;
Ra=10;
b=5;
Wmsb=Ra/2;
disp(Wmsb,'weight of MSB (V)=')
Wlsb=Ra/2^b;
disp(Wlsb,'weight of LSB (V)=')