Circuit Theory/Simultaneous Equations/Example 3/ex3matlab1

a=[ 1 0 0 0 0
0 0 0 1 0
1 -1 -1 0 0
0 0 0 0 1
0 1 0 0 -1]

c = [-1;1;3;1;-1]

a\c