MATLAB: How to expand matrix to an equation

equationmatrix

How would I expand this matrix to equations? I do not know if there is a pre-existing function to do this(reverse of equationsToMatrix??) I have attached the question as well. Thanks!

Best Answer

Straightforward:
syms x y
Eqn1 = [1 4; 2 3]*[x; y] == [1; -2];
Eqn2 = simplify(Eqn1)
Eqn2 =
x + 4*y == 1
2*x + 3*y == -2