y=polyval(c,x)
Inputs  
c 
The vector of coefficients of the polynomial to be evaluated. 
x 
The array of independent values at which the polynomial is to be evaluated. 
Outputs  
y 
An array of the same size as x containing the evaluated values of the polynomial.

c[1]*x^(m1)+c[2]*x^(m2)....+c[m]
, where m
is the size of c
.
>>a=[5 2 3 4] >>r=roots(a) >>polyval(a,r) Scaled by 10^14 0.1776 + 0.0999i 0.4441  0.1066i 0  0.0999i