Is it possible to solve the equation in matlab without rearranging it??

9 visualizaciones (últimos 30 días)
Equation: 4X+2X-Y=2X+2, find the value of Y at X=2.
We can solve the equation after rearranging it as, Y=4X-2;
Is it possible to solve the equation in matlab without rearranging??

Respuesta aceptada

Niels
Niels el 30 de En. de 2015
Although I don't see why you would even bother to do it without rearranging, it is easily possible if you have the symbolic toolbox:
y = sym('y');
x = 2;
y = solve(4*x+2*x-y == 2*x+2, y);
  1 comentario
R7 DR
R7 DR el 30 de En. de 2015
Thanks for your answer. Acctually I have a very big equation to solve, so I thought of solving it without rearranging.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Partial Differential Equation Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by