summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.26/2_26.sce
blob: 83bd9f74d56b7ba7a8562dcfc0389854d5aadd7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//convert current source to voltage source

V1=4*2
V2=2*2

//Mesh Analysis

A=[7,-3;-15,19]
I=inv(A)*[6;-14]

Vx=3*(I(1)-I(2))
disp(Vx)