eqn1 = 
How to solve Simultaneous equations
Mostrar comentarios más antiguos
3x+2y=0
x+y=4
Respuestas (2)
Write your equations as
A*z = b
for a 2x2-matrix A and a 2x1-vector b with z being the vector of unknowns [x;y].
To solve for z, you can then use "mldivide":
sympref('FloatingPointOutput',0);
syms x y
eqn1 = 4*x - 3*y == 0
eqn2 = 3*x + 2*y == 4
sol = solve([eqn1, eqn2])
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!