Aitken method for interpolation
I have written aitken's method for interpolation in octave/matlab.
I would like know if it's right. Because i get this result if I call .
Here is the code, feel free to modify for correcting.
- function w = aitken(t,x,y)
- % t is a vector of x axis values of points where we want to interpolate
- % x and y are vectors of known points
- % return value w is a vector of calculated points (aitken method) on y axis
- for k=1:1:length(t)
- for j=1:n-1
- for i=j+1:n
- function drawint(m)
- figure; clf;
- hold on;
Thank you for your help.