solving equations in matrix matlab code example
Example 1: equations to matrix matlab
syms x y z
eqns = [x+y-2*z == 0,
x+y+z == 1,
2*y-z == -5];
[A,b] = equationsToMatrix(eqns)
Example 2: equations to matrix matlab
vars = [x, z, y];
[A,b] = equationsToMatrix(eqns,vars)