开发者

How do I interpolate along a path of scattered points on a MATLAB grid?

开发者 https://www.devze.com 2023-03-11 07:22 出处:网络
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).

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号