Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Re: parabolic interpolation between 3 nearest points Date: Sun, 26 Jun 2011 19:51:04 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 22 Message-ID: <iu82j8$gun$1@newscl01ah.mathworks.com> References: <iu6ln0$1n6$1@newscl01ah.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: www-01-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: newscl01ah.mathworks.com 1309117864 17367 172.30.248.46 (26 Jun 2011 19:51:04 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Sun, 26 Jun 2011 19:51:04 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 1187260 Xref: news.mathworks.com comp.soft-sys.matlab:733751 "sk maidul haque" <skmaidulhaque@gmail.com> wrote in message <iu6ln0$1n6$1@newscl01ah.mathworks.com>... > Can somebody please explain me what does it mean by 'parabolic interpolation between 3 nearest points' . Does it mean that a parabola is to be ploted between 3 points which are nearest to the concerned point where I want to do the interpolation and then to calculate the value from the equation of parabola at concerned point. > If it is so, then what is the form of equation of parabola to be used ? > > what is the related command in matlab to do parabolic interpolation between specified number of nearest neighbour points. > > Thanks in advance. - - - - - - - - - - Assuming your interpretation is the one to be used, let (x1,y1), (x2,y2), and (x3,y3) be the three "nearest" points and (x,y) be the "concerned" point. If (x,y) is to lie on the parabola through the three points, you can express y as a quadratic function of x in the form: 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