I have coordinate vectors X and Y and corresponding vector of function values Z. Points (Xi,Yi) are distributed irregularly on plane. I'm trying to convert these points to a regular mesh with constant spacing, calculate corresponding values Z and plot them using surf. What is the best way to do it in matlab? I was looking at interp2, but it requires data in meshgrid format.
Thanks!
Best Answer