Said another way, I want to compress the system of 10 equations and 14 unknowns to a system of 4 equations and 8 unknowns (where I can specify the 6 unknowns I don't want in the compressed system).
Solving a System of Equations with syms
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have a system of 10 equations and 14 unknowns. I want to solve this system of equations for 6 particular unknowns in terms of the other unknowns.
When I use solve(Equations==0) then it successfully solves for 10 unknowns in terms of the other 4 unknowns. However, I can't control which 10 unknowns MATLAB solves for.
When I try to specify 6 of the unknowns MATLAB solves for and use solve(Equations==0,x1,x2,x3,x4,x5,x6) then I get an empty matrix as my answer.
Can someone please tell me how I can correctly specify the 6 unknowns that I want MATLAB to solve for?
Thank you, Kevin
3 comentarios
Walter Roberson
el 14 de Feb. de 2013
Perhaps the equations are not solvable with respect to those 6 variables.
Kevin Bachovchin
el 14 de Feb. de 2013
Editada: Walter Roberson
el 14 de Feb. de 2013
Respuesta aceptada
Walter Roberson
el 14 de Feb. de 2013
Editada: Walter Roberson
el 14 de Feb. de 2013
XSubstitute = {x1,x2,x3,x4,x5,x6,x7,x8,x9,x10}
solve(Equations==0,XSubstitute{:})
6 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Number Theory 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!