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 r开发者_开发技巧everse 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.
精彩评论