blob: 8906b37ecee2484588308e23ab22e71b443b53d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//CHAPTER 4- MEASURING INSTRUMENTS
//Example 6
disp("CHAPTER 4");
disp("EXAMPLE 6");
//VARIABLE INITIALIZATION
I_m=20/1000; //from mA to A
v_m=50/1000; //from mV to V
v=500; //in Volts
//SOLUTION
r_m=v_m/I_m;
r_s=(v/I_m)-r_m;
disp(sprintf("The series resistance to measure 500 V on full scale is %f Ω",r_s));
//END
|