MATLAB: Symbolic variables: Isolate a variable in an equation

isolatesymbolicvariables

I always have trouble isolating symbolic variables in equations. See this for example:
8*x1 + 2*x2 + 3*x3 - 51 = 0
want to isolate x1, manually know is this:
x1 = (51 – 2*x2 – 3*x3)/8
how can I do this in matlab? Thanks in advance.

Best Answer

solve(8*x1 + 2*x2 + 3*x3 - 51, x1)