1 2 3 4 5 6 7 8 9
//convert practical current source to voltage source V=10*5 //KVLs A=[35,-20;-20,50] I=inv(A)*[50;-100] v=20*(I(1)-I(2)) disp(v)