Professional Documents
Culture Documents
A13 Newton Forward Interpolation.m
A13 Newton Forward Interpolation.m
A = polyval(C,p0);
fprintf('Approcimate value at given data point is : %.4f\n',A);
x = linspace(X(1),X(n),100);
y = polyval(C,x);
plot(x,y,'r')
hold on
plot(X,Y,'o')