summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.10/2_10.sce
blob: db054fd7e5b717e4cb7c3c1a17648e8962c63740 (plain)
1
2
3
4
5
6
7
8
9
//converting 9v voltage source to current source
I=9/0.45
I=I-7

//KCLs
A=[1/0.45+1/10,-1/10 ; 0.2-1/10,1/10-0.2]
V=inv(A)*[-18;5]

disp(V(2))