interpolate on a sparse - incomplete - non-square grid

3 visualizaciones (últimos 30 días)
MM
MM el 8 de Oct. de 2012
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...

Respuestas (1)

Matt J
Matt J el 8 de Oct. de 2012
See TriScatterdInterp or griddata.

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by