blob: d05d490352576091228b594e02cbcc6ef7d3caed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
im=0.05;
s=1/im;
rm=3;
v1=5;
v2=15;
v3=50;
r1=s*v1-rm;
disp("the value of R1 (in kΩ) is"); disp(r1);
r2=s*v2-(rm+r1);
disp("the value of R2 (in kΩ) is"); disp(r2);
r3=s*v3-(rm+r1+r2);
disp("the value of R1 (in kΩ) is"); disp(r3);
|