<< moc_polyfit Matlab/Octave Compatibility toolbox moc_postpad >>

Matlab/Octave Compatibility toolbox >> Matlab/Octave Compatibility toolbox > moc_polyval

moc_polyval

Evaluate the polynomial p at the specified values of x

Calling Sequence

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)

Description

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.

See also

Authors


Report an issue
<< moc_polyfit Matlab/Octave Compatibility toolbox moc_postpad >>