Results 1 to 2 of 2

Thread: Scheme of aitken interpolation - octave code

  1. #1
    Newbie
    Joined
    Apr 2017
    From
    Katowice
    Posts
    1

    Scheme of aitken interpolation - octave code

    Hello,

    Could anyone help me to write Aitken algoritm in actave?Scheme of aitken interpolation - octave code-bez-tytu-u.png


    There is what I already wrote, but I do not know how to end it, please help me mates

    Code:
    function w = aitken(n)
    
    for i = 0:0
        for j = 1:n-1
            W(i,j) = ((y(i)*(x(j)-x))-(y(j)*(x(i)-x)))/((x(j)-x(i));
            for k = j+1:n
                W(i,j,k) = ((W(i,j)*(x(k)-x))-(W(i,k)*(x(j)-x)))/(x(k)-x(j));
                for m = k+1:
            endfor
        endfor
    endfor
    
    end
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    6,577
    Thanks
    1711

    Re: Scheme of aitken interpolation - octave code

    Hey fredros123.

    What part are you having difficulty with?

    The function value is going to be your W function as a function of x and the points you are interpolating which involve the (xi,yi) points.

    So when you find W(x|(x1,y1)...(xn,yn)) you have your function taking in an x parameter and a set of points that are interpolated against.

    You need to supply a vector of x values and a set of points which are just two row vectors and then you can plot the function based on your input x row vector.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Aitken method for interpolation
    Posted in the Advanced Math Topics Forum
    Replies: 0
    Last Post: Dec 28th 2013, 05:15 AM
  2. Using imagesc to visualize arrays in Octave
    Posted in the Math Software Forum
    Replies: 0
    Last Post: Sep 13th 2011, 09:54 PM
  3. Plotting multiple circles in Octave from arrays
    Posted in the Math Software Forum
    Replies: 1
    Last Post: Oct 27th 2010, 08:43 PM
  4. octave and multi-criterion-function
    Posted in the Math Software Forum
    Replies: 3
    Last Post: Apr 22nd 2010, 04:13 AM
  5. importing data into octave/matlab
    Posted in the Math Software Forum
    Replies: 0
    Last Post: Nov 5th 2008, 09:20 AM

Search Tags


/mathhelpforum @mathhelpforum