MATLAB - Algebra
www.tutorialspoint.com › matlab › matlab_algebraSolving Quadratic Equations in MATLAB. The solve function can also solve higher order equations. It is often used to solve quadratic equations. The function returns the roots of the equation in an array. The following example solves the quadratic equation x 2-7x +12 = 0. Create a script file and type the following code −