Solving One Equation Symbolically Matlab

Suppose you want to find the solutions to the quadratic equation


Matlab can solve this with the solve command. First we symbolically define our variable x and then apply the command. Try this:

syms x
solve (‘x^2 – 5 * x = 14’)

ans =


more information here: