polyval
R2026bPolynomial evaluation
Syntax
Description
evaluates the polynomial defined by the coefficient vector y = polyval(coeffs,x)coeffs
at each point in x. The vector coeffs has
length n+1 and contains the coefficients of an
nth-degree polynomial p in
descending powers:
The polynomial coefficients in coeffs can be calculated for
different purposes by functions like polyint, polyder, and polyfit, but you can specify any
vector for the coefficients.
To evaluate a polynomial in a matrix sense, use polyvalm instead.
or y = polyval(coeffs,x,[],centerScale)[
evaluates the polynomial at the normalized points , where y,delta]
= polyval(coeffs,x,fitStats,centerScale)centerScale is produced by
polyfit. Use the second syntax to evaluate a fitted
polynomial and compute error estimates, with coefficients, fit statistics, and
normalization parameters obtained from polyfit.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced before R2006a

