summaryrefslogtreecommitdiff
path: root/343/CH1/EX1.52/ex_52.sce
blob: c23433f58a8c94a876ddc66bef2f28e81ded52df (plain)
1
2
3
4
5
6
7
8
9
10
11
R1=2;
R2=4;
R3=4;
R4=2;
I1=2;
I2=4;
A=[2,-1;1,-3];                //Applying KCL at the two nodes
B=[8;-16];
V=inv(A)*B;
disp("Volts",V(1,1),"Voltage at node A")
disp("Volts",V(2,1),"Voltage at node B")