Solving Nonlinear Equation(s) in MATLAB
chemeng.queensu.ca › courses › CHEE2224. MATLAB function ROOTS If the nonlinear algebraic system is a polynomial equation, we could use the MATLAB routine roots to find the zeros of the polynomial. Consider the same function f(x) = x3 - 5x2-x +2 that we discussed earlier. The user must create a vector of the coefficients of the polynomial, in descending order, p = [1 5 -1 2]: