How to solve 2 matrixes
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Aidan Shek
el 9 de Feb. de 2017
Respondida: Hannes Daepp
el 14 de Feb. de 2017
How would i solve this particular equation to find x and y. Equation in is attachments
1 comentario
the cyclist
el 9 de Feb. de 2017
What have you tried? Did someone (e.g. a teacher) tell you that you must use MATLAB to do this, because this can easily be solved without it.
Do you realize that what have written there actually represents 4 equations? (That realization is important to solving for x and y.)
Respuesta aceptada
Hannes Daepp
el 14 de Feb. de 2017
As the cyclist pointed out above, this is a somewhat odd system of equations to solve in matrix form. However, in general, you can use "solve" to find solutions for systems of equations, in matrix form or as a list of equations, provided separately. For example,
>> syms x y
>> [x_ans, y_ans] = solve([x + y; y - x] == [9; 1])
x_ans =
4
y_ans =
5
You can find more information on the "solve" function in the documentation. Additionally, you may find the following documentation links to be useful for approaching equation solving:
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!