Search code examples
matlabsymbolic-mathmupad

Rearranging symbolic expression


I have a function in MuPAD in terms of various variables as z = f(x,y,...). Now I would like to rearrange the equation to express x in terms of z. I have not found the suitable command to do so.


Solution

  • Use solve. Example:

    syms x y z
    X = solve('z = x^3 + y^3 - 1', x);