blob: 58271380f54bffd67875059a445cfbc1c0906c64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//example1.22
clc
disp("The arrangment is shown in the fig 1.92")
disp("P2=(I^2)*R2")
disp("Therefore, 16= (2^2)*R2")
r=16/4
disp(r,"R2(in ohm)=")
v=4*2
disp(v,"V2(in ohm)=I*R2=")
v=2*6
disp("V3(in V)=I*R3=")
v=4+8+12
disp(v,"V(in V)=V1+V2+V3=")
|