MATLAB: How to get the interpolating polynomial for multivariate scattered data

interpolating polynomial for multivariate scattered data

I have a multivariate scattered data. I tried using griddatan for interpolating at some unknown points and it worked. Now i wanted to get an Interpolating polynomial for the same. What code should I use and Does any one has an example to share. I am also attaching the my data file.

Best Answer

Sigh. There is NO unique interpolating polynomial. In fact, there are an uncountable number of possible interpolating polynomials, all of which may well do nasty stuff between the points. And given that your variables are very differently scaled, that polynomial will be difficult to work with, and will surely be nasty looking.
So, you have 8 data points. An interpolating polynomial will require 8 terms. Almost any 8 terms will suffice. Which ones would you like? Note that in 4 dimensions of independent variables, there are dozens of possible terms one might want to use.
If you start out with a constant term, plus 4 linear terms, there are 3 other terms that will be needed, and absolutely no more. Which terms will you choose among the zillions of possible terms?
Probably you are thinking about Lagrange interpolating polynomials. Sorry, but that idea is not quite so nice in 4 dimensions. Worse, even in one dimension, a Lagrange interpolating polynomial through 9 points will generally produce worthless crapola. In 4 dimensions, don't waste your time with the idea.
Related Question