MATLAB: How to find the values of a function at any desired point given its value at some arbitrary points?

interpolationmeshgrid

If my function u(x,y,z) values is given at say 5 points (x,y,z)…..now I want to find the value of the function at the meshgrid points [x,y,z]=meshgrid (0:.1:1,0:.1:1,0:.1:1) ,x=[1 2 3 4 5],y=[1 2 3 4 5],z=[1 2 3 4 5] u=[1 8 27 64 125]

Best Answer

Five points worth of information is not a lot for interpolation in 3-D - plot the points and all their connections and see how utterly little it is.
You can try scatteredInterpolant and hope that your points are inside the convex hull of your 5 points and that your function is "very nice".
HTH