Evaluate the polynomial p at the specified values of x
y = moc_polyval (p, x) y = moc_polyval (p, x, [], mu) [y,dy] = moc_polyval (p, x) [y,dy] = moc_polyval (p, x,s) [y,dy] = moc_polyval (p, x,s,mu)
Evaluate the polynomial p at the specified values of x}. When mu is present, evaluate the polynomial for (x-mu(1))/mu(2). If x is a vector or matrix, the polynomial is evaluated for each of the elements of x.
In addition to evaluating the polynomial, the second output represents the prediction interval, y +/- dy which contains at least 50% of the future predictions. To calculate the prediction interval, the structured variable @var{s}, originating from moc_polyfit, must be supplied.