what is the related command in matlab to do parabolic interpolation between specified number of nearest neighbour points.
Thanks in advance.
What it means will only be clear once you elaborate for us on what it is you are trying to accomplish. For example, parabolic interpolation sometimes refers to a way of minimizing a 1D function
http://en.wikipedia.org/wiki/Successive_parabolic_interpolation
but who knows if that's applicable to you.
y = a*(x-x2)^2 + b*(x-x2) + y2
where a and b are:
a = ((y3-y2)/(x3-x2)-(y2-y1)/(x2-x1))/(x3-x1)
b = ((y3-y2)/(x3-x2)*(x2-x1)+(y2-y1)/(x2-x1)*(x3-x2))/(x3-x1)
An alternative would be to use Lagrange's interpolation method for second degree polynomials. See
http://en.wikipedia.org/wiki/Lagrange_polynomial
Roger Stafford
>>>>>>Thanks.
but then what will be the corresponding equation if the parabolic interpolation is to be made between 4 nearest points instead of 3.
Is it going to be of the form
y = a*(x-x2)^3 + b*(x-x2)^2 + c*(x-x2)+ y2
where
a=..........
b=............
c=............
If it is so, then what is the difference between parabolic interpolation and polynomial interpolation.