blob: 7aea319eb012c115472e1ccdd5f9a67191da8f6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
disp("Part a");
v1=10;
i1=1;
r1=v1/i1;
disp("the resistance value (in Ω) is"); disp(r1);
disp("Part b");
v2=20;
i2=2;
r2=v2/i2;
disp("the resistance value (in Ω) is"); disp(r2);
disp("Part c");
v3=30;
i3=3;
r3=v3/i3;
disp("the resistance value (in Ω) is"); disp(r3);
|