How to interpolate along the path of scattered points on a MATLAB grid?

I have a grid of NxN values ​​and a 2xM list of x, y data points that will be interpolated to this grid (obtained from output countouron a similar grid of values).

How to do it in MATLAB?

This is a kind of inverse problem, which griddata, TriScatteredInterpand perhaps more correctly, inpaint_nansolves (i.e., scattered points to create a grid).

+3
source share
1 answer

Use interp2, a tool designed to do just that.

+3
source

All Articles