Create a script file and type the following code. Using the codes you can easily solve any polynomial equation. QuadRoots1quadRoots2 Q1_quadratic abc.
Roots1 -3 2 and Matlab will give you the roots of the polynomial equation.
Learn to solve quadratic equations We are going to create now a Matlab program that calculates the quadratic roots roots of quadratic equations. Using the codes you can easily solve any polynomial equation. Eq x2 -7x 12 0. Roots1 0 -4 and the result.