MATLAB Answers

R7 DR
0

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

Asked by R7 DR
on 30 Jan 2015
Latest activity Commented on by R7 DR
on 30 Jan 2015
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??

  0 Comments

Sign in to comment.

1 Answer

Answer by Niels
on 30 Jan 2015
 Accepted Answer

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 Comment

Thanks for your answer. Acctually I have a very big equation to solve, so I thought of solving it without rearranging.

Sign in to comment.