Representing Polynomials

MATLAB® software represents polynomials as row vectors containing coefficients ordered by descending powers. For example, consider the equation

p(x)=x32x5

This is the celebrated example Wallis used when he first represented Newton's method to the French Academy. To enter this polynomial into MATLAB, use

p = [1 0 -2 -5];
Was this topic helpful?