I have a NxN grid of values and a 2xM list of x,y data points to be interpolated onto that grid (obtained from the output of countour on a similar grid of values).
How do I do this in MATLAB?
This is sort of the reverse of the problem that griddata, TriScatteredInterp and perhaps more appropriately, inpaint_nan solves (i.e. scattered points to generate a grid).
Use interp2, the tool designed to do exactly that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With