Polynomial roots - MATLAB roots - MathWorks
www.mathworks.com › help › matlabr = roots(p) returns the roots of the polynomial represented by p as a column vector. Input p is a vector containing n+1 polynomial coefficients, starting with the coefficient of x n. A coefficient of 0 indicates an intermediate power that is not present in the equation. For example, p = [3 2 -2] represents the polynomial 3 x 2 + 2 x − 2.