summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.14/2_14.sce
blob: b946a5c0826a7ae6b2b598b4d2f3fb1904c8fb2c (plain)
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)