polyint
Polynomial interpolation.
yn=polyint(x, y, xn)
Inputs
x A vector real numbers specifying the values of indpendent variable.
y A vector real numbers specifying the known values of depndent variable.
xn The array of values of the independednt variables at which the interpolated values are required.
Outputs
yn The estimated values of the dependent variable at the the points specified by xn .


Example
>>x=[0:.2:1]*pi;
>>y=sin(x)
>>xn=[0:.02:1]'*pi
>>z=polyint(x,y,xn)
>>plot(x,y,xn,z)
>>title('Polynomial Interpolation')
>>legends({'Sin(x) Coarse Sampling', 'Sin(x): Interpolated'},Legends.SW);