Given the equations
eqn1 = 5 x1 + 2 x2 + 3 x3 == 8 eqn2 = 4 x1 + 7 x2 + 9 x3 == 5 eqn3 = 6 x1 + x2 + 9 x3 == 2
how to extract the coefficients at x1, x2, x3
to form a matrix?
I tried using CoefficientArrays
, but the result was set as SparseArray
.
penny source share