I have a 3D surface given in data-points of the form ${x,y,z}$. What is the easiest way to get the interpolated value $z=f(X,Y)$ for given coordinates ${X,Y}$ (which are of course not in the data list)?
|
Mathematica's interpolation function,
Then, you can extract the values for values between the data points:
And
Note, that the interpolation is pretty good:
Or better yet (thanks @rcollyer):
Update Leonid's comment below pointed out that the accuracy of
Then,
which is worse. It seems particularly bad close to the origin:
|
|||||||||||||
|
|
Now, I have to apply
You can use Let's see the results graphically
|
|||||||||
|


