interpolate on a sparse - incomplete - non-square grid

3 views (last 30 days)
I have some data in the form of a vector (xi,yi,Fi,Gi) where F and G are two-dimensional functions of x and y.
However, the {xi,yi} set do NOT form a grid: ie for some values of x there are more y values where I know F and G e.g.
x=[2,2,2,3,3,4,4,4,4,5,5]';
y=[4,5,6,5,6,7,8,9,10,8,10]';
I want to perform some calculations involving x, F and G. Is there a way to perform interpolation to get for example f_int the interpolation of f on a subset of the (x,y) parameter space,_ e.g._ on
x_int=3:.1:4;
y_int=5:.1:10;
However it seems that interp2 would not work because the (xi,yi) are not monotonously ordered...

Answers (1)

Matt J
Matt J on 8 Oct 2012
See TriScatterdInterp or griddata.

Categories

Find more on Interpolating Gridded Data in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!