summaryrefslogtreecommitdiff
path: root/2360/CH4/EX4.7/ex4_7.sce
blob: 2fe6a06d4d4977b2a3bdebbcc44261876e360e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Exa 4.7
format('v',7);clc;clear;close;
// Given data
n = 3;// number of bit
R = 1/(10^n);
V = 1;// in V
// For 1V range,
Resolution = V*R;// in V
disp(Resolution,"For 1 V range, the resolution in V is");
// For 50 V range,
V = 50;// in V
Resolution = V*R;// in V
disp(Resolution,"For 50 V range, the resolution in V is");