Polynomial evaluation
y = polyval(p,x,s) [y,delta] = polyval(p,x,s)
vector.
scalar, vector or matrix.
see polyfit (second returned argument)
Polynomial evaluation. If p is a vector of length d+1 whose elements are the coefficients of a polynomial, then y = polyval(p,x) is the value of the polynomial, defined by its coefficients p, evaluated at x.
if x is a matrix or vector, the polynomial is evaluated at all points in x.
[y,delta] = polyval(p,x,s) uses the optional output generated by polyfit to generate error estimates, y +/- delta.