y = polyval(p,S)
y = polyval(p,S), where p is a vector whose elements are the coefficients of a polynomial in descending powers, is the value of the polynomial evaluated at S. If S is a matrix or vector, the polynomial is evaluated at each of the elements.
polyvalm(p,S), with S a matrix, evaluates the polynomial in a matrix sense. See polyvalm for more information.
is evaluated at s = 5 with
which results inp = [3 2 1];polyval(p,5)
For another example, seeans =86
polyfit.
conv,poly,polyfit,polyvalm,residue,roots
(c) Copyright 1994 by The MathWorks, Inc.